Book Image

Hands-On Enterprise Application Development with Python

By : Saurabh Badhwar
Book Image

Hands-On Enterprise Application Development with Python

By: Saurabh Badhwar

Overview of this book

Dynamically typed languages like Python are continuously improving. With the addition of exciting new features and a wide selection of modern libraries and frameworks, Python has emerged as an ideal language for developing enterprise applications. Hands-On Enterprise Application Development with Python will show you how to build effective applications that are stable, secure, and easily scalable. The book is a detailed guide to building an end-to-end enterprise-grade application in Python. You will learn how to effectively implement Python features and design patterns that will positively impact your application lifecycle. The book also covers advanced concurrency techniques that will help you build a RESTful application with an optimized frontend. Given that security and stability are the foundation for an enterprise application, you’ll be trained on effective testing, performance analysis, and security practices, and understand how to embed them in your codebase during the initial phase. You’ll also be guided in how to move on from a monolithic architecture to one that is service oriented, leveraging microservices and serverless deployment techniques. By the end of the book, you will have become proficient at building efficient enterprise applications in Python.
Table of Contents (24 chapters)
Title Page
Copyright and Credits
About Packt
Contributors
Preface
Index

Utilizing API gateways for the integration of microservices


The use of API gateways in a microservices architecture provides a really interesting way of approaching the microservices integration problem, while also following one of the patterns of application integration through the use of federated gateways. So, let’s take a look at how the API gateways help us in the process of microservices integration.

An API gateway inside the microservices-based application acts as central point through which the microservices can interact with the other microservices present in the infrastructure. This API gateway provides the following characteristics:

  • Restricted exposure of APIs: The API gateway provides the functionality of exposing only a restricted set of APIs from the backend microservices, hence limiting what functionality is exposed. Along with this, the API gateway can also introduce new API endpoints in the infrastructure, where each API endpoint can map to multiple API endpoints of the backend...