Topics
Backend
All articles on Backend, newest first.
Transparency: I have revised all articles afterwards with the help of AI and translated them from German with its help. The ideas, experience and positions are my own. The audio versions of the German originals are read by a synthetic voice.
HTTP/2 and Server-Sent Events in Node.js
How HTTP/2 multiplexes many streams over one connection and why Server-Sent Events are often a simpler answer to live data than WebSocket – with a working SSE endpoint in Node and the usual pitfalls.
Testing Node.js: The Test Pyramid with Mocha
How to distribute a Node.js test suite sensibly across different test levels and how Mocha, node:assert, sinon and supertest work together along the way.
TypeScript in Node.js: Setup, Types and Tests
Setting up TypeScript in a Node project: understand the tsconfig essentials, type async code and handlers, and get the tests running, step by step from project practice.
2023 5
2023 5
- Errors as Architecture in Node.js: Safety Nets Against the CrashError handling in Node.js is not try/catch cosmetics but a decision about levels, escalation and orderly termination. If you know the four error levels and take graceful shutdown seriously, you build services that die in a controlled way instead of running on in a corrupt state.SoftwareNode.jsBackend
- child_process in Node.js: Scaling Without IllusionsNode.js runs on a single event loop – CPU work blocks everything. This post shows when fork, cluster, and worker_threads really help and when they are just overhead.SoftwareNode.jsBackend
- RxJS in Node.js: Processing Event Streams ReactivelyRxJS in Node.js: how fromEvent turns an EventEmitter into an observable, how operators transform server-side streams declaratively and why RxJS has no real backpressure.SoftwareNode.jsBackend
- Async Context in Node.js: AsyncLocalStorage, async_hooks and diagnostics_channelHow to carry request-scoped context such as request ID, user and trace through deep asynchronous call chains without threading it through every function signature – with AsyncLocalStorage, the underlying async_hooks and diagnostics_channel for decoupled tracing.SoftwareNode.jsBackend
- Debugging and Profiling Node.js LocallyFrom the console.log reflex to the built-in inspector: node --inspect, the debug module, nodemon and first CPU and memory profiles for local diagnosis.SoftwareNode.jsBackend
2022 4
2022 4
- Streams in Object Mode: Data Pipelines Beyond BytesNode.js streams carry more than bytes: with objectMode:true they become composable data pipelines that parse, filter and aggregate – including the bridge to async iterators.SoftwareNode.jsBackend
- Buffers in Node.js: Working with Binary DataWhy JS strings don’t work for raw bytes and Buffer is Node’s tool for them: alloc versus allocUnsafe, reading and writing encodings cleanly, and the memory trap behind slice and subarray.SoftwareNode.jsBackend
- Node.js Streams: Understanding and Using BackpressureWhy a fast producer must not overrun a slow consumer – and how pipe, pipeline, the return value of write() and the drain event handle flow control in Node.js.SoftwareNode.jsBackend
- EventEmitter: The Event Model at the Core of Node.jsEventEmitter is the common denominator beneath streams, HTTP servers and processes: I show on/once/off/emit, the special behavior of 'error' and how to avoid listener leaks.SoftwareNode.jsBackend
2021 1
2020 3
2020 3
- Web APIs with Flask: From the App to a JSON APIFrom Hello World to a JSON API: how routing, request handling and jsonify work together in Flask 1.1 – and why SSR and APIs are the same mechanism.SoftwarePythonBackend
- Functional Patterns in Python: Comprehensions, itertools and functoolsComprehensions, functools and itertools working together: how I show in projects when a comprehension is a better choice than map/filter, where lru_cache and groupby shine, and which pitfalls are waiting.SoftwarePythonBackend
- Advanced Python: Decorators, Magic Methods and GeneratorsThree building blocks that make code Pythonic: decorators wrap functions, magic methods bind your own objects to Python’s protocols, generators produce lazy sequences.SoftwarePythonBackend
2019 1
2017 2
2017 2
- WebSockets Are Not Always the AnswerWhy Server-Sent Events are the simpler choice for most real-time requirements and when the price of a real WebSocket connection actually pays off.SoftwareNode.jsBackend
- Node.js: Async I/O Explains ArchitectureThe calculation “one thread times 200 connections” shows which systems fit Node.js and which work belongs in separate processes.SoftwareNode.jsBackend