Skip to content

Latest commit

 

History

History
64 lines (40 loc) · 1.05 KB

07-expiration-service.md

File metadata and controls

64 lines (40 loc) · 1.05 KB

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


Expiration Service


20. Worker Services


$ cd expiration
$ npm install --save bull @types/bull

push changes to github


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

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

$ cd orders
$ npm run test

// CREATE TICKET
// CREATE ORDER

After 15 minutes:

[expiration] Event published to subject expiration:complete
[orders] Message received: expiration:complete / orders-service
[orders] Event published to subject order:cancelled
[tickets] Message received: order:cancelled / tickets-service
[tickets] Event published to subject ticket:updated
[orders] Message received: ticket:updated / orders-service



Marley

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