I think the problems identified with the architecture are being wrongly imputed on REST. REST is synchronous in terms of request/reply, but that doesn't mean that higher-level actions must (or even should) be restricted to that cycle, so subprocesses like the notification should never have to block the stock update. Even if the requester needs to be informed about that, the stock updating mechanism should instead cre…
Is REST Best in a Microservices Architecture?
41–50 of 51 posts
Re: Is REST Best in a Microservices Architecture?
#42REST is not the source of the problem being described in the article. The problem in the article is from bad application of REST. I'm currently working at a startup that has about 15 microservices and there are a few different strategies that we use to solve the problems being described in this article: We do use HTTP REST style requests when one service needs to fetch data from another service on the fly (usually in…
I might suggest that 202 is a better response in your example.
Re: Is REST Best in a Microservices Architecture?
#43I think the problems identified with the architecture are being wrongly imputed on REST. REST is synchronous in terms of request/reply, but that doesn't mean that higher-level actions must (or even should) be restricted to that cycle, so subprocesses like the notification should never have to block the stock update. Even if the requester needs to be informed about that, the stock updating mechanism should instead cre…
It looks like ESB implementations from a decade back is being reasoned out into REST, like fitting a round peg in a square hole in many places in their diagrams
Re: Is REST Best in a Microservices Architecture?
#44Re: Is REST Best in a Microservices Architecture?
#45Re: Is REST Best in a Microservices Architecture?
#46Re: Is REST Best in a Microservices Architecture?
#47And I'm OK with those being separated - to me, the more choice I have around techs used provides more competition for cleaner, easier configuration of said tech.
Re: Is REST Best in a Microservices Architecture?
#48Re: Is REST Best in a Microservices Architecture?
#49Re: Is REST Best in a Microservices Architecture?
#50Earlier quoted context omitted.
I might suggest that 202 is a better response in your example.
Good point! The fact that there is a 202 status code also goes to show that REST best practices allows for both synchronous and asynchronous use cases.