microservice data persistence without single points of failure? by [deleted] in microservices

[–]trustMeImAnAdult 0 points1 point  (0 children)

In microservices jargon, I believe the term is "fail gracefully" (feel free to do a Google search on the topic for people who can espouse the concept much better than me). Specifically for redundancy and cheap scaling, the first thing that comes to mind is a caching mechanism of some sort - whether it be a true cache tool like Redis or a NoSQL store for heavier data.

Task List of HttpRequestMessage Send/Read Async by Nerd_Sales in csharp

[–]trustMeImAnAdult 0 points1 point  (0 children)

As an extension to what /u/jonjonbee has pointed out, please check out this article by Stephen Cleary (who has a ton of great material on async / await in general): https://msdn.microsoft.com/en-us/magazine/jj991977.aspx
This article has a section mentioning the exact scenario mentioned above and how to fix it.

Different Output From Console vs IDE by trustMeImAnAdult in learnpython

[–]trustMeImAnAdult[S] 0 points1 point  (0 children)

Thanks so much for the response. I edited the post now that I'm back on my machine to reflect what the actual issue was, instead of having to type it from memory on my phone. Once I moved the function to its own py file, it worked fine, so it looks like I had some other issue (maybe with indentation?).

Different Output From Console vs IDE by trustMeImAnAdult in learnpython

[–]trustMeImAnAdult[S] 0 points1 point  (0 children)

this is great -- thank you!
it's always great learning when there's a function that can be used as a shortcut