News for hackers. Stuff that matters.
Re:Asynchronous Programming in Python: Asyncio by JustSomeNobody on Monday May 01, 2017 @05:01PM (#14241541)
They aren't really meant to accomplish the same goals, async and microservices. What I mean is, these are architectural choices. While at some level they may look interchangeable, they really aren't.

There's no 100% correct way to say when to use one or the other, but here's one way I would think of them.

Microservices are used to help define the architecture of your system overall. This is more ... high level. Async would be more at a process level.

So, for your example, you could have a flask microservice that exposed an interface that accepted a list of email addresses and a message to send to each. The request handler for that could then call a method using asyncio to send the emails. This would allow the microservice to remain responsive and wait for more requests.

Re:Asynchronous Programming in Python: Asyncio by robbiep on Monday May 01, 2017 @06:35PM (#14242368)
Point taken. Much appreciated, thank-you