3 ms·
Start writing your own Backends for some Apps that you're working on. You'll quickly run into areas where you need to worry about different levels of the backen
by ac2u 11y ago
Start writing your own Backends for some Apps that you're working on. You'll quickly run into areas where you need to worry about different levels of the backend stack.
Make a request to get some data? Done.
Button to generate CSV report fires off a request which takes way too long? Uh-oh it's keeping a thread occupied on your server that could be busy serving other requests. Time to get familiar with fronting your infrastructure with nginx as an evented way to handle loads of connections. Now you're diving into getting familiar with events vs threads vs processes for handling connections.
Want to have the UI respond immediately to that export request? Now you're into the realm of having the export be processed in a background queue so that the http request returns immediately with a job number you can poll the status of later.
You've now got a background worker pulling export work items off a queue. How are you going to ensure that this process is running all the time on a production environment. Time to look at either daemonizing the process, or using a process supervisor, this is where you're finding out a little more about process return/error codes, and forking.
The laboured point I'm making is that familiarity will come naturally as you solve use cases, and your mental toolbox of "bits of knowledge" for the backend will grow as you research how to solve problems you come across day-to-day.
- eshwarramesh 11y agoThank you for your response. I will devote some time to reading some tutorials and asking questions about what works and why and how.