Coder Social home page Coder Social logo

ptzagk / hands-on-docker-for-microservices-with-python Goto Github PK

View Code? Open in Web Editor NEW

This project forked from packtpublishing/hands-on-docker-for-microservices-with-python

0.0 0.0 0.0 159 KB

Hands-On Docker for Microservices with Python, published by Packt

License: MIT License

Python 77.44% HTML 5.50% Dockerfile 9.03% Shell 8.03%

hands-on-docker-for-microservices-with-python's Introduction

Hands-On Docker for Microservices with Python

Hands-On Docker for Microservices with Python

This is the code repository for Hands-On Docker for Microservices with Python , published by Packt.

Design, deploy, and operate a complex system with multiple microservices using Docker and Kubernetes

What is this book about?

Microservices architecture helps create complex systems with multiple, interconnected services that can be maintained by independent teams working in parallel. This book guides you on how to develop these complex systems with the help of containers.

This book covers the following exciting features:

  • Discover how to design, test, and operate scalable microservices
  • Coordinate and deploy different services using Kubernetes
  • Use Docker to construct scalable and manageable applications with microservices
  • Understand how to monitor a complete system to ensure early detection of problems
  • Become well versed with migrating from an existing monolithic system to a microservice one Use load balancing to ensure seamless operation between the old monolith and the new service

If you feel this book is for you, get your copy today!

Instructions and Navigations

All of the code is organized into folders. For example, Chapter02.

The code will look like the following:

class ThoughtModel(db.Model):
    id = db.Column(db.Integer, primary_key=True)
    username = db.Column(db.String(50))
    text = db.Column(db.String(250))
    timestamp = db.Column(db.DateTime, server_default=func.now())

Following is what you need for this book: This book is aimed at developers or software architects who work with complex systems and want to be able to scale the development of their systems.

It is also aimed at developers who typically deal with a monolith that has grown to a point where adding new features is difficult and development is difficult to scale. The book outlines the migration of a traditional monolithic system to a microservice architecture, providing a roadmap covering all the different stages.

With the following software and hardware list you can run all code files present in the book (Chapter 1-).

Software and Hardware List

Chapter Software required OS required
1-10 Python 3.8 Windows/Linux/macOS

We also provide a PDF file that has color images of the screenshots/diagrams used in this book. Click here to download it.

Errata

  • Page 7 (Paragraph 2, Line 1): Chapter 1, Making the Move – Design, Plan, Execute, describes a typical situation for a monolith system… should be Chapter 1, Making the Move – Design, Plan, and Execute, describes a typical situation for a monolith system…
  • Page 10 (Paragraph 4, Line 1): a frontend web server that exposes the port in HTTP/HTTPS, and a backend that runs the monolith code in a dedicated web worker. should be a frontend web server that exposes the port in HTTP/HTTPS and a backend one that runs the monolith code in a dedicated web worker.
  • Page 11 (Paragraph 2, Line 1): Each individual deployed web worker will... should be Each individually deployed web worker will...
  • Page 11 (Paragraph 6, Line 1): As the service is a whole, any... should be For the service is a whole, any...
  • Page 13 (Paragraph 6, Line 2): ...problem, but limiting its use so that it is contained, not requiring a drastic change in the company. should be ...problem. However, this technique's use should be restricted so that it is contained and does not require a drastic change in the company.
  • Page 40 (Paragraph 2, Line 2): API interface should be API
  • Page 41 (Paragraph 3, Line 2): We will discuss different elements such as the API design, the database schema that supports it, and how to implement and how to implement the microservice. should be We will discuss different elements such as the API design, the database schema that supports it, and how to implement the microservice.
  • Page 42 (Paragraph 1, Line 3): Installation and running instructions can be found on its README.md file. should be Installation and running instructions can be found in the README.md file.
  • Page 42 (Paragraph 3, Line 1): The diagram shows the different elements for our example system… should be The diagram shows the different elements in our example system…
  • Page 42 (Paragraph 4, Line 1): Thoughts Backend will be responsible for storing new thoughts… should be Thoughts Backend is responsible for storing new thoughts…
  • Page 43 (Paragraph 1, Line 4): logged user should be logged in user
  • Page 43 (Paragraph 2, Line 1): Note the fact that the user is logged also validates the fact that the user exists. should be The fact that the user is logged in also validates their existence.
  • Page 43 (Paragraph 4, Line 2): The JWT itself is encrypted, but the information contained here is mostly only relevant for checking the user that was logged. should be The JWT itself is encrypted, but the information contained here is mostly only relevant for checking the user who was logged in.
  • Page 43 (Last paragraph, Line 2): API interface should be API
  • Page 44 (Paragraph 3, Line 3): at the client should be at the client side
  • Page 45 (Paragraph 1, Line 1): API interface should be API
  • Page 45 (Line 7): Any user, even not authenticated, can perform these actions. should be Any user, even non-authenticated ones, can perform these actions.
  • Page 47 (Paragraph 1, Line 2): There are two approaches to dealing with databases… should be There are two approaches to deal with databases…
  • Page 47 (Last paragraph, Line 7): A well-tailored SQLAlchemy definition can perform some abstract tasks very efficiently, but it requires good knowledge of the tool. should be A well-tailored SQLAlchemy definition can perform some abstract tasks very efficiently, but you need to possess good knowledge of the tool.
  • Page 67 (Paragraph 1, Line 1): API interface should be API
  • Page 274 (Paragraph 4, Line 1): logged user should be logged in user

Related products

Get to Know the Author

Jaime Buelta has been a professional programmer since 2002 and a full-time Python developer since 2010. He has developed software for a variety of fields, focusing, in the last 10 years, on developing web services in Python in the gaming and finance industries. He has seen first hand the revolution of containerization for backend services over the years and has seen how they can improve the development process. He published his first book, Python Automation Cookbook, in 2018. He is a strong proponent of automating everything to make computers do most of the heavy lifting so that users can focus on the important stuff. He is currently living in Dublin, Ireland, and is a regular speaker at PyCon Ireland.

Suggestions and Feedback

Click here if you have any feedback or suggestions.

hands-on-docker-for-microservices-with-python's People

Contributors

jaimebuelta avatar manjusha29 avatar romydias avatar shaileshj-packt avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.