AppSync GraphQL Gateway as a Router in Gateway design Pattern and Strangler Pattern to migrate from Monolith to Microservices
Two famous Microservices design patterns are “API Gateway design pattern” and “Strangler pattern”. In this article, I am proposing a design that will merge both patterns together using AWS serverless approach.
The Strangler Pattern
The Strangler Pattern is used to migrate from a legacy system (ex: Monolithic) to a modern system (ex: Microservices). It is defined in Microsoft Design patterns at https://docs.microsoft.com/en-us/azure/architecture/patterns/strangler.
As shown in the figure above, there is a “Strangler Facade” that will route the migrated calls to the modern system and keep strangling the old one, until, eventually, remove the facade and only call the Modern System.
The API Gateway Pattern
As defined at https://microservices.io/patterns/apigateway.html, the API Gateway is used to have a single gateway to the system
AppSync as an API Gateway and Strangler Facade
In this article, the following design uses AWS AppSync as an API Gateway and Strangler Facade as explained in AWS documents at https://aws.amazon.com/blogs/mobile/appsync-microservices/.
Here is the final design:
Building a GraphQL Microservice with AWS AppSync and Amplify
As we created a REST Microservice, I would like to create a GraphQL Microservice. AWS Amplify and AppSync made it…
Serverless GraphQL(AppSync) Progressive Migration from REST
This week, I presented a proposed architecture to migrate to Serverless GraphQL system using AWS AppSync to our BOD…
Microservice Architecture and Design Patterns for Microservices
Microservices can have a positive impact on your enterprise. Therefore it is worth to know that, how to handle…
Serverless Strangler Pattern on AWS
How to implement a Serverless Strangler on AWS using Lambda@Edge and Regional Based API Gateway Endpoints
Microservices Pattern: API gateway pattern
Let's imagine you are building an online store that uses the Microservice architecture pattern and that you are…
Simplify access to multiple microservices with AWS AppSync and AWS Amplify | Amazon Web Services
This article was written by Faraz Masood, Cloud Architect, AWS Modern applications and architectures are created with…