Click here to Skip to main content
15,888,175 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Another Azure (and Microservice) question Pin
Super Lloyd30-Apr-20 0:55
Super Lloyd30-Apr-20 0:55 
GeneralRe: Another Azure (and Microservice) question Pin
Super Lloyd30-Apr-20 1:09
Super Lloyd30-Apr-20 1:09 
GeneralRe: Another Azure (and Microservice) question Pin
Sander Rossel30-Apr-20 2:00
professionalSander Rossel30-Apr-20 2:00 
GeneralRe: Another Azure (and Microservice) question Pin
Super Lloyd30-Apr-20 2:43
Super Lloyd30-Apr-20 2:43 
GeneralRe: Another Azure (and Microservice) question Pin
Sander Rossel30-Apr-20 2:54
professionalSander Rossel30-Apr-20 2:54 
GeneralRe: Another Azure (and Microservice) question Pin
Super Lloyd30-Apr-20 3:00
Super Lloyd30-Apr-20 3:00 
GeneralRe: Another Azure (and Microservice) question Pin
ZurdoDev30-Apr-20 1:16
professionalZurdoDev30-Apr-20 1:16 
GeneralRe: Another Azure (and Microservice) question Pin
Andreas Mertens30-Apr-20 3:38
professionalAndreas Mertens30-Apr-20 3:38 
I did something similar for a website, which used various kinds of emails to process different types of orders for customers. I set up a service to accept an email request from a message queue, where each request contained the type of email and a set of data. It simply plugged the data into the approriate email template and sent it off.

The website now only needs to submit the data annd email type to the message queue, then return to the user immediately letting them know an email will be sent.

Lots of advantages:
- it takes a bit of time to generate the email and then send via email server. The website is not held up with this processing.
- Easy to update the email templates, maintain a common look and feel, etc. without any need to change anything in the website. In fact you could shut down the email service for upgrades, etc. with no email loss.
- If there is a disruption in sending the email, easy to resubmit to queue and process again, without loss of the email. For example if a mail server goes down. I even had this set up so that if there is repeated failures in sending because email server was down, I would go into sleep mode, with a periodic test to see if email server was restored.

Offloading emailing like this made sending emails from the web site much easier, with guaranteed delivery.

GeneralRe: Another Azure (and Microservice) question Pin
Sander Rossel30-Apr-20 4:14
professionalSander Rossel30-Apr-20 4:14 
GeneralRe: Another Azure (and Microservice) question Pin
Andreas Mertens30-Apr-20 6:07
professionalAndreas Mertens30-Apr-20 6:07 
Generalsend private email codeprject member Pin
pkfox29-Apr-20 9:32
professionalpkfox29-Apr-20 9:32 
GeneralRe: send private email codeprject member Pin
OriginalGriff29-Apr-20 9:48
mveOriginalGriff29-Apr-20 9:48 
GeneralRe: send private email codeprject member Pin
pkfox29-Apr-20 10:07
professionalpkfox29-Apr-20 10:07 
GeneralRe: send private email codeprject member Pin
Nelek29-Apr-20 9:49
protectorNelek29-Apr-20 9:49 
GeneralRe: send private email codeprject member Pin
pkfox29-Apr-20 10:08
professionalpkfox29-Apr-20 10:08 
NewsAt the risk of approaching 'political' Pin
Kent Sharkey29-Apr-20 9:09
staffKent Sharkey29-Apr-20 9:09 
GeneralRe: At the risk of approaching 'political' Pin
Ron Anders29-Apr-20 9:37
Ron Anders29-Apr-20 9:37 
GeneralRe: At the risk of approaching 'political' Pin
W Balboos, GHB29-Apr-20 10:30
W Balboos, GHB29-Apr-20 10:30 
GeneralRe: At the risk of approaching 'political' Pin
Mike Hankey29-Apr-20 11:33
mveMike Hankey29-Apr-20 11:33 
GeneralRe: At the risk of approaching 'political' Pin
David O'Neil29-Apr-20 12:00
professionalDavid O'Neil29-Apr-20 12:00 
GeneralSocial Distancing Irony PinPopular
ZurdoDev29-Apr-20 7:02
professionalZurdoDev29-Apr-20 7:02 
GeneralRe: Social Distancing Irony Pin
steveb29-Apr-20 7:08
mvesteveb29-Apr-20 7:08 
GeneralRe: Social Distancing Irony Pin
Richard Andrew x6429-Apr-20 10:57
professionalRichard Andrew x6429-Apr-20 10:57 
GeneralRe: Social Distancing Irony Pin
steveb29-Apr-20 11:52
mvesteveb29-Apr-20 11:52 
GeneralRe: Social Distancing Irony Pin
enhzflep30-Apr-20 20:37
enhzflep30-Apr-20 20:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.