Skip to content

Latest commit

 

History

History
129 lines (68 loc) · 1.47 KB

16_Managing_a_NATS_Client.md

File metadata and controls

129 lines (68 loc) · 1.47 KB

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

16. Managing a NATS Client


01. Publishing Ticket Creation


02. More on Publishing


03. NATS Client Singleton


Application


04. Remember Mongoose


Application


05. Singleton Implementation


06. Accessing the NATS Client


07. Graceful Shutdown


$ kubectl delete pod nats-deployment-cb48ddfbf-zghfq

Nats connection closed!


Application


08. Successful Listen!

$ npm run listen

// CREATE TICKET

Application


09. Ticket Update Publishing

// UPDATE TICKET

10. Failed Event Publishing


11. Handling Publish Failures


12. Fixing a Few Tests

$ cd tickets
$ npm run test

Application


13. Redirecting Imports


Application


14. Providing a Mock Implementation


15. Test-Suite Wide Mocks


16. Ensuring Mock Invocations


17. NATS Env Variables




Marley

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