3 ms·
The biggest challenge when migrating from HTTP to any kind of stream is the loss of callback on response, because there is no request/response. There is only pu
by austincheney 5y ago
The biggest challenge when migrating from HTTP to any kind of stream is the loss of callback on response, because there is no request/response. There is only push. That means your messaging and message handling becomes far more complex to compensate.
The article mentions that your socket could drop. This isn’t critical so long as you have HTTP as a redundancy.
For any kind of application making use of micro services I strongly recommend migrating to a socket first transmission scheme because it is an insane performance improvement. Also it means the added complexity to handle message management makes your application more durable in the face of any type of transmission instability. The durability means that your application is less error prone AND it is ready for migration to other protocols in the future with almost no refactoring.