comicbookshop

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.

  1. Create a Azure Service Bus with any name.
  2. Create the following queues with exact case and spelling
    1. emailshoppingcart
    2. registeruser
    3. ordercreated
    4. ordercreatedemail
  3. Update ‘ServiceBusConnectionString’ in EmailAPI Project appsettings.json with the Connection String of the Service Bus via Shared access policies
  4. Update connectionString in ‘MessageBus : IMessageBus’ also with the Connection String of the Service Bus via Shared access policies
  5. The Messages from the service bus are recieved and processed by the ‘EmailAPI’ project and store the message in the database.
    1. For example, user registraion sends a message to the registeruser and gets logged in the database
    2. The ‘Email Cart’ action also results in a message being logged via the queue.
    3. same happens when an order is placed.
    4. Keep checking the ‘[EmailLoggers]’ table as new messages are processed.
  6. Note: as of now, if azure service bus is not configured, the project will crash out.

book a session with me

  1. calendly

hire and get to know me

find ways to hire me, follow me and stay in touch with me.

  1. github
  2. personal site
  3. upwork
  4. fiverr
  5. codementor
  6. stackoverflow
  7. Jay’s Coding Channel
  8. medium blog