{"id":1131,"date":"2020-01-24T12:36:41","date_gmt":"2020-01-24T11:36:41","guid":{"rendered":"https:\/\/blog.besharp.it\/?p=1131"},"modified":"2021-03-24T17:02:25","modified_gmt":"2021-03-24T16:02:25","slug":"decoupling-services-using-sqs-as-lambda-trigger","status":"publish","type":"post","link":"https:\/\/blog.besharp.it\/decoupling-services-using-sqs-as-lambda-trigger\/","title":{"rendered":"Decoupling services using SQS as a Lambda Trigger"},"content":{"rendered":"

Design a microservices-based application presents some challenges such as service discovery, standardize internal cross-service communication, services synchronization, and much more.<\/p>\n

One of the most common scenarios is the decoupling of two services when the first relies on the other one to asynchronously process some data. We can solve these kinds of problems using a classic producer-consumer approach.<\/p>\n

In the Cloud, we can leverage managed services to ease the realization of such architecture.<\/p>\n

The reference infrastructure for those situations is to use one or more SQS queues to decouple the producer from the consumer.<\/p>\n

Using managed services guarantees several benefits, including:<\/p>\n