Pub/Sub with #aws SNS, SQS and #laravel
▻https://hackernoon.com/pub-sub-with-aws-sns-sqs-and-laravel-ed9f7e1bd79?source=rss----3a8144eab
Pub/Sub is a great mechanism to establish microservice communication. By focusing on defining good, reliable topics of interest, microservices can come and go without disrupting the entire ecosystem. AWS offer two great services that help build a highly scalable, reliable and recoverable pub/sub system: Simple Notification Service and Simple Queue Service.Introduction to microservice communicationWhen service A communicate with B via direct call, we can infer that there is a dependency in A coupled to B. If B is temporarily unavailable or under heavy load, it could disrupt the stability of A.Writing coupled microservices usually means dealing with the worst of both worlds. If instead the system was built like a monolith, it would still be coupled to each other, but without the problems (...)