Book Image

Cloud Native Python

By : Manish Sethi
Book Image

Cloud Native Python

By: Manish Sethi

Overview of this book

Businesses today are evolving so rapidly that having their own infrastructure to support their expansion is not feasible. As a result, they have been resorting to the elasticity of the cloud to provide a platform to build and deploy their highly scalable applications. This book will be the one stop for you to learn all about building cloud-native architectures in Python. It will begin by introducing you to cloud-native architecture and will help break it down for you. Then you’ll learn how to build microservices in Python using REST APIs in an event driven approach and you will build the web layer. Next, you’ll learn about Interacting data services and building Web views with React, after which we will take a detailed look at application security and performance. Then, you’ll also learn how to Dockerize your services. And finally, you’ll learn how to deploy the application on the AWS and Azure platforms. We will end the book by discussing some concepts and techniques around troubleshooting problems that might occur with your applications after you’ve deployed them. This book will teach you how to craft applications that are built as small standard units, using all the proven best practices and avoiding the usual traps. It's a practical book: we're going to build everything using Python 3 and its amazing tooling ecosystem. The book will take you on a journey, the destination of which, is the creation of a complete Python application based on microservices over the cloud platform
Table of Contents (14 chapters)
6
Creating UIs to Scale with Flux

Understanding Flux

Flux is a pattern that Facebook created to build consistent and stable webapps with React. React doesn't give you the ability to manage data; rather, it simply accepts data through props and components, and further, the components process the data.

The React library doesn't really tell you how to get the components, or where to store the data, that's why it's called the view layer. In React, we don't have a framework as we have in the case of Angular or Backbone. That's where Flux comes in. Flux is not really a framework, but it's a pattern that will have you building your own views.

What is a Flux pattern? We have your React components, such as a Tweet component and so on, and these components do two things in the Flux pattern--they either perform actions or they listen to stores. In our use case, if a user wants to post a...