- Hands-On Docker for Microservices with Python
- Jaime Buelta
- 128字
- 2021-06-24 12:35:52
Summary
In this chapter, we saw how to develop a web microservice. We started by designing its API following REST principles. Then, we described how to access the schema of the database, and how to do it using SQLAlchemy.
Then, we learned how to implement it using Flask-RESTPlus. We learned how to define the resources being mapped to the API endpoints, how to parse the input values, how to process the actions, and then how to return the results using the serializer model. We described how the authentication layer works.
We included tests and described how to use the pytest fixture to create initial conditions for our tests. In the next chapter, we will look at how to containerize the service and run it through Docker.
推薦閱讀
- GPS/GNSS原理與應用(第3版)
- 電子政務效益的經濟分析與評價
- Oracle SOA Suite 11g Performance Tuning Cookbook
- JBoss EAP6 High Availability
- Go Web Scraping Quick Start Guide
- NB-IoT物聯網技術解析與案例詳解
- Mastering JavaFX 10
- 物聯網技術與應用
- Learning Swift(Second Edition)
- 計算機網絡技術及應用
- 深入理解OpenStack Neutron
- Practical Web Penetration Testing
- 物聯網的機遇與利用
- 現代通信系統(第5版)
- Enterprise ApplicationDevelopment with Ext JSand Spring