2 ms·
Do you have an example of a stateful protocol you prefer over REST?
by nahname 14y ago
Do you have an example of a stateful protocol you prefer over REST?
- jiggy2011 14y agoDepends on what you are doing, there are plenty of times where REST is fine. What people seem to forget however is that there are other mature protocols on the internet besides HTTP. Let's say for example you want to send some information between two servers. You decide to do this with REST, so you make an HTTP request. What happens if the REST server goes down? You either want to failover to a different host or you want to it to wait and retry later. You could use some custom async queuing system like RabbitMQ etc but another thing to bear in mind is that postfix supports both of these things. You can simply send an email with your message to a target mailbox that the other server has access too and use multiple MX records for the failover.