- 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.
- 數(shù)據(jù)通信網(wǎng)絡(luò)實(shí)踐:基礎(chǔ)知識(shí)與交換機(jī)技術(shù)
- 互聯(lián)網(wǎng)安全的40個(gè)智慧洞見(jiàn):2015年中國(guó)互聯(lián)網(wǎng)安全大會(huì)文集
- 通信簡(jiǎn)史:從信鴿到6G+
- 企業(yè)私有云建設(shè)指南
- 正在爆發(fā)的互聯(lián)網(wǎng)革命
- 中國(guó)互聯(lián)網(wǎng)發(fā)展報(bào)告2018
- Spring 5.0 Projects
- 6G無(wú)線網(wǎng)絡(luò)空口關(guān)鍵技術(shù)
- 設(shè)備監(jiān)控技術(shù)詳解
- 5G技術(shù)核心與增強(qiáng):從R15到R17
- 現(xiàn)場(chǎng)綜合化網(wǎng)絡(luò)運(yùn)營(yíng)與維護(hù):運(yùn)營(yíng)商數(shù)字化轉(zhuǎn)型技術(shù)與實(shí)踐
- 走近奇妙的物聯(lián)網(wǎng)
- 從物聯(lián)到萬(wàn)聯(lián):Node.js與樹(shù)莓派萬(wàn)維物聯(lián)網(wǎng)構(gòu)建實(shí)戰(zhàn)
- 中國(guó)信息化年鑒2017
- 加密與解密實(shí)戰(zhàn)全攻略