- Microservices Development Cookbook
- Paul Osman
- 251字
- 2021-07-16 17:48:28
Using Docker for local development
As we've discussed, microservices solve a particular set of problems but introduce some new challenges of their own. One challenge that engineers on your team will probably run into is doing local development. With a monolith, there are fewer moving parts that have to be managed—usually, you can get away with just running a database and an application server on your workstation to get work done. As you start to create new microservices, however, the situation gets more complicated.
Containers are a great way to manage this complexity. Docker is a popular, open source software containerization platform. Docker allows you to specify how to run your application as a container—a lightweight standardized unit for deployment. There are plenty of books and online documentation about Docker, so we won't go into too much detail here, just know that a container encapsulates all of the information needed to run your application. As mentioned, a monolith application will often require an application server and a database server at a minimum—these will each run in their own container.
Docker Compose is a tool for running multicontainer applications. Compose allows you to define your applications containers in a YAML configuration file. Using the information in this file, you can then build and run your application. Compose will manage all of the various services defined in the configuration file in separate containers, allowing you to run a complex system on your workstation for local development.
- TCP/IP入門經典(第5版)
- 互聯網安全的40個智慧洞見:2014年中國互聯網安全大會文集
- SSL VPN : Understanding, evaluating and planning secure, web/based remote access
- 計算機網絡工程實用教程(第2版)
- Building RESTful Web services with Go
- Kong網關:入門、實戰與進階
- 夢工廠之材質N次方:Maya材質手冊
- SAE原理與網絡規劃
- 5G+區塊鏈
- 沖擊:5G如何改變世界
- LwIP應用開發實戰指南:基于STM32
- Building RESTful Web Services with .NET Core
- 世界互聯網發展報告2021
- 學術虛擬社區用戶社會化交互行為研究
- Hands-On Full Stack Web Development with Aurelia