Arnie SMTP buffer server in 100 lines of async Python
Arnie SMTP buffer server in 100 lines of async Python
Here's the 100 lines of code: https://github.com/bootrino/arniesmtpbufferserver/blob/master/arniesmtpbufferserver.py Here's the github repo: https://github.com/bootrino/arniesmtpbufferserver It's MIT licensed. Arnie is a server that has the single purpose of buffering outbound SMTP emails. I wrote Arnie because I got frustrated using complex queueing systems simply to buffer outbound SMTP emails. I'd rather spend time writing this than spend the same time debugging Celery configuration. A typical web SAAS needs to send emails such as signup/signin/forgot password etc. The web page code itself should not directly write this to an SMTP server. Instead they should be decoupled. There's a few reasons for this. One is, if there is an error in sending the email, then the whole thing simply falls over if that send was executed by the web page code - there's no chance to resend because the web request has completed. Also, execution of an SMTP request by a web page slows the response time down of that page, whilst the code goes through the process of connecting to the server and sending the email. So when you send SMTP email from your web application, the most performant and safest way to do it is to buffer them for sending. The buffering server will then queue them and send them and handle things like retries if the target SMTP server is down or throttled.
Share cardActual performance
Launch Intel predictions
Analyze your own launch →Incorrect prediction on native model
Similar products
Querying 50k Gameservers in 100 lines of Python
MaryJane – Mjpeg server in 30 lines of async Python
Sentiment Analysis in 100 lines of Python
Hangman in 3 lines of Python
Backwards automatic differentiation in ~100 lines of Python
Mini-swe-agent achieves 65% on SWE-bench in 100 lines of python
From-Scratch MLP Classifier in 100 Lines [Python]
A Brainfuck interpreter in 100 lines of C
A very simple Lisp interpreter in 250 lines of literate Python
A Reddit clone in 100 lines of Python