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

Chapter 13


Answer 1

There are a number of advantages that are provided by a move to serverless architecture, such as the following:

  • Reduced development effort through the integration of third-party services
  • Less operational complexity, because now the organization doesn't need to take care of the infrastructure
  • Improved security, since the individual functions execute in their own separate containers, which helps us to keep the different functions from interfering with each other
  • Improved scalability of the application

Answer 2

The use of Backend as a Service (BaaS) helps in the creation of applications by providing common set of functionality through the integration of the APIs. These services are hosted by a third-party provider,thereby reducing the effort that the application developers will have to expend in rebuilding them in their application from scratch.

Answer 3

The API gateway in a serverless architecture maps the API endpoints to a function in the backend. These API endpoints can then be called by the clients when a particular event occurs, invoking the backend function.

Answer 4

There are certain reasons why an application cannot be ported successfully to a serverless architecture. These reasons are as follows:

  • The use of a technology stack that may not be supported by the serverless infrastructure provider
  • Applications that need to store the state of the request processing to generate correct results
  • A tightly coupled code base that makes it hard to define individual methods
  • Some components of the application taking an extremely long time to execute