Skip to content

Latest commit

 

History

History
157 lines (81 loc) · 1.83 KB

17_Cross_Service_Data_Replication_In_Action.md

File metadata and controls

157 lines (81 loc) · 1.83 KB

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

17. Cross-Service Data Replication In Action


01. The Orders Service


Application


02. Scaffolding the Orders Service


Application


03. A Touch More Setup


04. Ingress Routing Rules


Application


05. Scaffolding a Few Route Handlers


06. Subtle Service Coupling


07. Associating Orders and Tickets


Application


Application


Application


08. Order Model Setup


09. The Need for an Enum


Application


10. Creating an Order Status Enum

$ cd common
$ npm run pub

$ cd orders
$ npm update @grider-ms-tickets/common

11. More on Mongoose Refs


12. Defining the Ticket Model


13. Order Creation Logic


14. Finding Reserved Tickets


15. Convenience Document Methods


16. Order Expiration Times


17. Test Suite Setup


18. Asserting Tickets Exist

$ co orders
$ npm run test

19. Asserting Reserved Tickets


20. Testing the Success Case


21. Fetching a User's Orders


22. A Slightly Complicated Test


23. Fetching Individual Orders


24. Does Fetching Work


25. Cancelling an Order


26. Can We Cancel




Marley

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