1

If i serialize my messages on one machine using thrift and deserialize on another, how do i know that my messages will reach in same order? And since from first machine i am sending messages continuously, if second machine is not able to consume messages at same speed where will my messages be buffered?

Does thrift act like messaging queue? What is the difference between thrift and messaging systems?

Tarun Kumar
  • 5,150
  • 6
  • 26
  • 30

1 Answers1

3

Thrift is not a message queue, and it does not act like one. Thrift is kind of RPC (remote procedure call).

In most common scenarios, the calls client makes are transferred over the TCP connection, and they are ordered by underlying TCP connection.

If you are using HTTP transport for Thrift, then some calls can reach server out of order.

MasterScrat
  • 7,090
  • 14
  • 48
  • 80
Davorin Ruševljan
  • 4,353
  • 21
  • 27
  • So, machine which is serializing the message will communicate with thrift server and deserializer machine will have thrift client? Where are serialized messages stored on thrift server? – Tarun Kumar Dec 21 '12 at 03:24
  • First they are not messages they are remote procedure calls, and they are not stored on the server. – Davorin Ruševljan Dec 22 '12 at 15:56