Войти
  • 1101Просмотров
  • 1 год назадОпубликованоdavid hwang

Ep8 Golang Enqueue Notifications into a Stateful Database Queue

Let's see how we can use a database as a queue and enqueue notification events. These notification events will later be consumed by our notification microservice to send email notifications to the customers. 0:00 intro 3:58 add migration files to update order status 4:46 add storer to update order status 6:01 add RPC to update order status 10:58 add handler and route to update order status 14:39 add migration files for notification states and the events queue tables 15:32 add storer to enqueue notification events 18:43 call EnqueueNotificationEvent from CreateOrder & updateOrderStatus RPCs 20:33 add storer to List and UpdateNotificationEvents 25:11 add RPCs to List and UpdateNotificationEvents