XSukhpreet

XSukhpreet

What is your best back-end stack?

Mine is Firebase because it is easy to learn and fast .

Most Liked

Maartz

Maartz

Well I do like Elixir in the back end, with PostgreSQL.
For the architecture, I use Commanded at work. It was complicated to grasp at first but now it makes a lot more sense.

Not a great fan of document based databases.

For me Elixir’s solves all the problems I can encounter. Lately I’ve used GenStage to handle synchronisation on some events. I’m eager to see how it’d be handled in another language.

dimitarvp

dimitarvp

Have you checked Supabase?

OvermindDL1

OvermindDL1

I actively run a python flask server for over 10 years now. It started as a little one-off project that… accidentally ended up getting used in ‘production’ on one of the open source sites I host due to its immediate usefulness. I’ve always kept intending to either replace it with an actually well built setup or just remove it altogether for something prebuilt open source or for it to eventually just die due to no longer needing to be used, but the prebuilt things lack features I need so I’d need to rebuild most of the functionality anyway, and I’ve not got around to rebuilding it because I keep expecting it to “die in the next year due to no longer needing to be used”, but that’s been repeating for over 10 years now.

In essence the flask app has a fairly minimal user authentication system, using pyobject or whatever it was called as the very minimal ‘database’ (only stores user data, kind of…), and files get uploaded and commands fired on it to do ‘stuff’. The ‘stuff’ it does includes things like generating a full static site generated from files and metadata uploaded around the system and paths in a lot of… unique ways I’ve not seen in any other SSG (hence why I haven’t been able to replace ‘that’ functionality yet either, it would practically require rewriting them as well).

Flask is easy, but I really really dislike it, it’s been the bane of so many issues for me over time, with the most annoying of which being that it can only handle a single connection at a time (yes I have it behind a uwsgi server but I still have to serialize their access to the filesystem so only one SSG update happens at a time, and it doesn’t have a good way to sync that outside of just ‘running another program’ or variety of other annoying things) and it’s a bit irritating to update.

But yeah, if you want to spool up something really really fast and really really simple, flask is great at that, but honestly I’d just use rust + rocket or so nowadays anyway (excepting rocket’s utterly garbage websocket support, only works via it’s own channel interface so you can’t just plug in any generic websocket handler very very irritatingly, though its channel interface is very nice if you can work within it, modeled on Elixir’s Phoenix Channels interface, but like Elixir’s Phoenix Channels it breaks horribly if you want to do actual real websocket connections to other libraries or so). At least rocket (and phoenix) have ways to kind of work around that by just hooking in to their underlying server libraries (hyper/tower for rocket and cowboy for phoenix) but it feels really hacky in both cases which does contribute to both libraries feeling a bit hacky as well when you are forced to do that. But I like rocket as it’s very similar to flask in feel, but significantly faster, more well made, and even easier to use in a lot of ways, in exchange for having to compile before running it, lol.

For backend stacks, rust nowadays, absolutely, unless you need extreme horizontal scaling across machines then phoenix or so can be easier to handle (though the ‘traditional’ ways of sharding work fine in rust anyway if a bit more stuff to set up than something like phoenix, though rust will scale better on a single system regardless). Rust has a lot of backend libraries, and they are working very well together as well with things like tower and such becoming popular as an integration point across them all.

Where Next?

Popular Frontend topics Top

First poster: bot
The challenge of searching static websites is effectively a solved problem with brilliant, yet widely unadopted, solutions. These projec...
New
First poster: bot
Decided to write this blog post because I couldn’t find any documentation or online examples like the one I’m sharing here. Every example...
New
First poster: bot
The Tower of Hanoi is a classic mathematical puzzle that is often used as an introduction to recursion. We can express a solution to this...
New
First poster: bot
If you are a long-time React user, you might be wondering for the past few years about when Concurrent Mode/Suspense will ship. The plans...
New
New
First poster: bot
ES2021 features list as approved by the Ecma General Assembly Logical Assignment Operators (&&= | Numeric Separators (1_000) ...
/js
New
XSukhpreet
Mine is Firebase because it is easy to learn and fast .
New
First poster: bot
Star Wars Scene Transition Effects in CSS. You know those wipe transitions between scenes in Star Wars movies? Have you ever thought it ...
New
New
First poster: OvermindDL1
I have to admit: as I’ve watched Tailwind enthusiastically adopted by more and more of the frontend community, I’ve remained skeptical. B...
New

Other popular topics Top

AstonJ
SpaceVim seems to be gaining in features and popularity and I just wondered how it compares with SpaceMacs in 2020 - anyone have any thou...
New
DevotionGeo
I know that -t flag is used along with -i flag for getting an interactive shell. But I cannot digest what the man page for docker run com...
New
AstonJ
Curious to know which languages and frameworks you’re all thinking about learning next :upside_down_face: Perhaps if there’s enough peop...
New
PragmaticBookshelf
Learn different ways of writing concurrent code in Elixir and increase your application's performance, without sacrificing scalability or...
New
AstonJ
Continuing the discussion from Thinking about learning Crystal, let’s discuss - I was wondering which languages don’t GC - maybe we can c...
New
PragmaticBookshelf
Rails 7 completely redefines what it means to produce fantastic user experiences and provides a way to achieve all the benefits of single...
New
New
New
AstonJ
This is a very quick guide, you just need to: Download LM Studio: https://lmstudio.ai/ Click on search Type DeepSeek, then select the o...
New
AstonJ
Curious what kind of results others are getting, I think actually prefer the 7B model to the 32B model, not only is it faster but the qua...
New