Skip to content

Latest commit

 

History

History
106 lines (67 loc) · 1.36 KB

06-orders-service.md

File metadata and controls

106 lines (67 loc) · 1.36 KB

[Stephen Grider] Microservices with Node JS and React [ENG, 2021]


Orders Service


17. Cross-Service Data Replication In Action


$ cd common
$ npm version patch

push changes to github

$ cd orders/
$ npm install @webmak/microservices-common
$ npm run test

returns:

Test Suites: 4 passed, 4 total
Tests:       2 todo, 7 passed, 9 total
Snapshots:   0 total
Time:        14.434 s
Ran all test suites.

18. Understanding Event Flow


$ cd common
$ npm version patch

push changes to github

$ cd orders/
$ npm install @webmak/microservices-common
$ npm run test

19. Listening for Events and Handling Concurrency Issues


$ cd tickets
$ npm install --save mongoose-update-if-current

$ cd orders
$ npm install --save mongoose-update-if-current

push changes to github


$ cd orders
$ npm update @webmak/microservices-common

$ cd tickets
$ npm update @webmak/microservices-common

$ cd tickets
$ npm run test

$ cd orders
$ npm run test

All Tests are OK!




Marley

Any questions in english: Telegram Chat
Любые вопросы на русском: Телеграм чат