Lurker News
I’d like to learn more about backend development but most of what I find while searching are results like “Build a nodejs backend in 20 minutes” or “learn backend development in an hour.” I think part of the problem is I don’t know enough to ask the right questions.

Comments (130) 48 threads

Earlier comments
tboyd471 reply#
Client-server distinction.

It sounds easy ("derp, back-end is server, front-end is client") but it's really quite a mind bender when you think about it. Take a given piece of website code in a given language. Where is it being executed? Some "front-end" techs (Node, Webpack, Uglify, etc.) will be executed invisibly on the server. Some "back-end" web techs (cookies, redirects, OPTIONS requests, TLS) enable some invisible client behavior. Some (PHP) are dual-purpose, executed in two stages, some (conditional comments) are hacks that exploit this duality. Some (OAuth2) are orchestrated dances between back-end and front-end. It's really not so simple when you think about it.

kijin1 reply#
It gets even more complicated because your server is often a client, too.

Modern backend code will usually connect to databases and call REST APIs. The databases themselves might be part of a cluster. Moreover, the backend code is rarely exposed directly to the public; there's usually a proper http server sitting in front of it, and there might be another load balancer or CDN between the user and your http server. Every connection has a client and a server, and sometimes the same component plays both roles. Remembering which role(s) each component is playing in any given context is very important for security, not to mention debugging.

aryamaan1 reply#
Why don't people put backend + load balancer servers directly in front of the public?

What all use cases are of using web servers?

therealdrag0#
I'm not sure what OP meant. But for Java, your app runs inside an application server like Tomcat which handles the low level networking for you, I believe this fulfills a similar role as web servers fill for other languages like PHP.

Basically these severs provide a separation of concerns and are built to be more scale-able than a naive application listening on a port for requests.

andy_ppp3 replies#
I actually think the most important thing you can do is learn SQL and specifically how to make things fast/clever enough with just Postgres.

Topics include different joins, relationship types, full text search, indexing, JSONB, amongst many others!

vp89891 reply#
This is the correct answer but no one wants to hear this in 2019.
chrisdsaldivar#
Postgres has been my go to DB for my projects. It's fast, simple and has decades of research and battle tested systems to pull knowledge from.

Your comment reminds me of a PyCon 2017 talk by Raymond Hettinger where he details the improvements in Python dictionaries from 2.7 to 3.6 which effectively amounted to rediscovering and re-implementing what was standard in databases decades ago.
"Modern Python Dictionaries A confluence of a dozen great ideas" https://www.youtube.com/watch?v=npw4s1QTmPg&ab_channel=PyCon...

MisterOctober1 reply#
As a friend said to me a couple weeks ago -- "Either use Postgres, or have a darn good reason why you don't!"
labster#
I have a lot of reasons not to use Postgres, and they're all historical reasons.
C1sc0cat#
I would add Sproc's and PL/SQL (or what ever postgress calls it)
bostik1 reply#
I can wholeheartedly second natdempk's concept list, but would like to add these. They should provide more than enough inspiration.

---
The failure modes; what they are and how they manifest: read contention, thundering herd, cascade, ...
Mitigation strategies and where to apply them: throttling, backpressure, load-shifting, graceful degradation - and of course how to signal the upper layers that these are taking place.
Decoupling reads and writes. (Search for material on CQRS and see where the rabbit hole takes you.)
Error handling and tracing. This is particularly devious, because by definition error path is the unhappy path. It will be more expensive when hit, and has to spend more time serialising data. See also read contention, thundering herd and mitigation strategies.
Learn and understand the differences between: telemetry, instrumentation and monitoring.

zbentley1 reply#
Those are great things to know. I wish a lot more people I worked with knew and understood them.

However, I don't think they're "must know concepts for back end development". Most backend development is small in scale: a few servers, maybe more, a database, maybe something running cron/equivalent jobs or a queue worker, maybe some caches. Not much besides that. While people learning to develop systems at that scale might incidentally learn some of the above, I don't think most of those concepts will be useful until people are designing systems at much greater scale. Informally, many of them are present in small systems: e.g. when your cache server is down but connections take 10sec to time out, that's a form of backpressure, technically, but not in a super formal or useful way to understand the concept.
In sum, I think those are important (essential, even) areas of knowledge for intermediate-experience back end developers, or developers looking to increase the scale of their infrastructure or projects (or work on very large-scale applications), but I don't think they're in the must-know, 101-level tier of back end knowledge. People can and do build successful, stable, easy-to-work-on back ends without knowledge of any of those things. In fact, this is the norm in our industry.
The lack of knowledge of these areas is not a significant handicap (to productivity, understanding, or code/output quality) until you get beyond small scale. Most software projects do not.

bostik#
> I don't think they're in the must-know, 101-level tier of back end knowledge.

Fair enough, I admit I am looking at things from behind glasses tinted in a certain way.
But I do believe some kind of familiarity of the concepts is essential. Even at relatively small scale. Read contention in particular is really easy to hit the first time you have to deal with an increase in traffic (doesn't need to be external, could be a minor change that triples the number of cross-service calls). Simply because the first observation is that worker systems are running hot, the instinctive reaction is to add more workers.
The two core problem areas in backend development - which in this context can mean anything that requires non-trivial server side processing - are I/O latency and processing capacity. Regardless of scale. Being unaware of (or worse, ignoring) them is not tenable.

monadgonad3 replies#
The O'Reilly book Designing Data-Intensive Systems is a good overview of a lot of the concepts mentioned in other comments, and most things you come across in typical backend development and operations. If that doesn't answer your questions, it'll certainly point you in the right direction.

https://dataintensive.net

chrisdsaldivar4 replies#
I've been looking at this book the past couple of days; have you read it yourself? If so what did you think?

Edit: I decided to go ahead and buy it since it was pretty cheap on Amazon. The table of contents had a lot of the information from the other comments. Thanks for the recommendation!

thundergolfer#
You won't be disappointed. The book is packed full of useful content, and I found that the presentation of that content is the sweet spot of technical and approachable.
mminer#
It does a great job of explaining the underlying ideas behind different databases and data processing systems. Even if your needs are met by, say, a traditional RDBMS like PostgreSQL, it’s helpful to know about the alternatives and what problems they solve. It’s the sort of book I wish I had read years ago; I’m sure you’ll be happy you picked it up.
barbecue_sauce#
Simply one of the best O'Reilly books in existence.
bowrnaprabhu#
I am currently reading this book and it gives clear explanation about each concepts that you have to consider in Designing database for your application. Definitely one of the best reads that broadens your outlook
fma#
I'm a backend engineer with 10 years experience, and now a team lead. Everything I learned is through experience and piecing stuff together... This looks to be the book I'm missing! Thanks.
rahimnathwani#
Seconding this recommendation. It has breadth, depth, and explains the 'why' as well as the 'what'.

It's probably too late for you to edit your comment, but the title is Designing Data-Intensive Applications (not Systems).

Load more comments