Today we will see what is API Gateway Design Pattern is.
What is API Gateway Design Pattern?
Microservice is built in such a way that each service acts differently on its own. So, when a web application is drilled down into smaller pieces there could be problems we face.
The problems are as follows.
How to get data from various microservices?
A different front-end application is required to manage the same database, just that it uses multiple web services.
How to respond with the data for different consumer to satisfy their requirement. So that we can have reusable microservices.
Handle multiple protocol requests.
Seems the list is small here, but in reality, it is even wider. The solution for these problems is to use the API Gateway design pattern. The API Gateway design pattern addresses many other problems apart from the ones mentioned above. We can also use this design pattern as a proxy service for routing the request.
API Gateway acts as the entry point for all the endpoints of the microservice, it can help in converting the various protocol request from one type to another. Also, it can disburden the responsibility of authentication/authorization in the microservice.
So, once the client sends the request, requests are passed through the API gateway which manages the entry point and re-routes the client’s request to the appropriate microservice. Then with the help of the load balancer, it distributes the client’s request to the microservice.
Microservice uses the service discovery which maintains the available microservices and their available entry points to communicate with each other
API Gateway Design pattern
In the next article, we will see Chained or Chain of Responsibility design pattern.
In this article, we will see Micro service and Design Patterns.
Micro service and Design Patterns
Micro service aka MSA has become the go-solution for most of the Enterprise to build or migrate the applications. They are known to solve various snags.
In order to build effective Microservice. We need to weld on to the design patterns, which helps us to improve the performance of the application.
Let us see the below topics as part of this article:
Microservices, aka MSA aka microservice architecture, is an style that structures an application as small collection of autonomous services which is surrounded around Business domain or models.
Ethics followed while Designing Microservice Architecture
Independent & Autonomous services
Scalability
Decentralization
Robust Services
Real-Time Load balancing
Availability
Continuous delivery through DevOps integration
Seamless API integration and continuous monitoring
Make WordPress as Android App. Yes, follow the article from top to bottom and do not miss out anything. In the end you will see your website or WordPress blog in Android phone as an application.
You can also publish the app in Google Play Store or any eco-system for Android apps (Such as Amazon app store, Samsung galaxy app store, Honor/Huawei App Gallery and So on).
How to Make WordPress as Android App?
Converting WordPress blog or Website is easy if you have hands-on with Android Studio and Android SDKs.
Yes, you need to know little bit of java coding knowledge and basics of Android application development. Do not worry if you have very little knowledge on these both should also be fine. If you follow this article carefully.
Options : (Below are frequently used options with grep command) -i Ignores case -n Print the line number -c Count of matched pattern (Will not print the search line, rather it just prints the count) -r Will search folders for matching text. -v non-matched lines are printed
Try for yourself:
1) Search for any string and print count hint: use -c 2) Search entire folder for match pattern with , (This is special symbol) hint: “\,” 3) Search string by ignoring the case and also search for multiple string in a file hint: use -v and in search string you need to split using | for multiple search string.