rimu OP Mod , to PieFed Meta in We're here to answer any questions you have about PieFed's code
@rimu@piefed.social avatar

I like FastAPI and PieFed uses it as well as Flask. Doing SSE (which involves holding HTTP connections open for a long time) was not going to work with Flask so that part is written using FastAPI.

Before starting development I did some experiments with Quart, an ASGI port of Flask. It was fine but didn't offer significant performance benefits until there were many many concurrent users, a situation that is still far in the future. Also as a more obscure framework it seemed like a risky bet. And if ASGI becomes absolutely necessary, we can migrate from Flask to Quart relatively easily. There's a good chance that PieFed 2.0 will use Quart.

I have also experimented with gevent as a way to make Flask do async. I got it working but every 5 or 6 hours everything falls over in a heap and needs to be restarted (DB connection leakage). Despite it being unreliable I was able to run it in production long enough to see how it performs and at our current scale it was not any better than what we have now. A bit worse, really.

It's possible that the importance of async is a bit oversold - https://hackeryarn.com/post/async-python-benchmarks/

Also at the same time the latest versions of Python have done away with the GIL that used to ruin threaded performance so that could eventually mean that wsgi might start to use threads well enough to be pretty great. We'll see.

@jamesfineart@mastodon.ie avatar jamesfineart , to random

G.
Sake Flask Tokkuri, a charcoal drawing of a ceramic sake flask or tokkuri .

[ Prints : https://james-mccormack.pixels.com/featured/sake-flask-tokkuri-james-mccormack.html ]

ALT
@h4ckernews@mastodon.social avatar h4ckernews Bot , to random
@tiagojferreira@bolha.us avatar tiagojferreira , (edited ) to PieFed Meta Portuguese

Opção de ferramenta de fórum federada, alternativa ao Lemmy desenvolvida em Python com Flask.

piefed_meta@piefed.social icon PieFed Meta

@altbot
https://piefed.social/f/educational

@MikisTikis@mastodon.social avatar MikisTikis , to random

Here pics from my booth at Tiki Inferno.. was my first show.. I've got a lot more i want to make.. check my online shop if you're interested in anything. Link on my bio.

image/jpeg
image/jpeg
image/jpeg

@m0bi@mastodon.com.pl avatar m0bi , to random Polish

📷 Dzisiaj trochę rowerowania 🚴 po okolicy, ale też sprawdzanie zasięgów w lasach i na otwartych przestrzeniach. Oraz testy mojej webapki dla wizualizującej położenie terminali z GPS dzięki i . W sam raz do zabaw z mapowaniem 😉

Rozstaje drogi asfaltowej i leśnej. Z lewej rower terenowy. Trzy znaki mówiące że droga skręca ostro w prawo
Odpoczynek przy starym blaszanym przystanku autobusowym pod lasem
Screen z mapą i zaznaczonymi punktami gdzie znajdują się terminale Meshtastic

ALT