azure service bus
The project depends on an active azure service bus with all the queues already configured via the Azure Portal.
Note: Remember to use free/developer/low cost azure resources when possible. Also, delete resources immediately after your coding session is done, and create them again when you begin coding again.
- Create a Azure Service Bus with any name.
- Create the following queues with exact case and spelling
- emailshoppingcart
- registeruser
- ordercreated
- ordercreatedemail
- Update ‘ServiceBusConnectionString’ in EmailAPI Project appsettings.json with the Connection String of the Service Bus via Shared access policies
- Update connectionString in ‘MessageBus : IMessageBus’ also with the Connection String of the Service Bus via Shared access policies
- The Messages from the service bus are recieved and processed by the ‘EmailAPI’ project and store the message in the database.
- For example, user registraion sends a message to the registeruser and gets logged in the database
- The ‘Email Cart’ action also results in a message being logged via the queue.
- same happens when an order is placed.
- Keep checking the ‘[EmailLoggers]’ table as new messages are processed.
- Note: as of now, if azure service bus is not configured, the project will crash out.
book a session with me
- calendly
hire and get to know me
find ways to hire me, follow me and stay in touch with me.
- github
- personal site
- upwork
- fiverr
- codementor
- stackoverflow
- Jay’s Coding Channel
- medium blog