Centralize Service Logic with FeathersJS Hooks
Use FeathersJS service hooks to inject createdBy, validate input, and stop invalid writes without repeating code in every service.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Use FeathersJS service hooks to inject createdBy, validate input, and stop invalid writes without repeating code in every service.
Knex.js transactions bind multiple queries to one pooled connection. This architecture note covers the smallest safe design, trust boundaries around driver commit behavior, and the operational checks that prevent pool exhaustion and silent data drift.
Set up an Apollo Router 1.x instance that stitches together two subgraphs—accounts and orders—into a single GraphQL endpoint. Follow a step‑by‑step guide covering schema design, local composition, router configuration, runtime checks, and recovery strategies.
Deploy a Node.js application across multiple CPU cores with PM2 cluster mode. This guide covers prerequisites, startup commands, ecosystem configuration, graceful reloads, expected checks, and recovery steps.
Nano's built-in wildcard routing lets you match patterns like /api/* and /user/:id without extra middleware. This blog shows a minimal example, explains the compile‑once regex approach, and highlights ordering rules and the lack of body parsing.
Wrap multiple Sequelize writes in a managed transaction so they commit or roll back together, avoiding partial updates.
Moleculer circuit breakers can block healthy services during traffic spikes. Start with errorThresholdPercentage: 50, resetTimeout: 10000, minimumCount: 10, and timeout: 5000 to avoid false positives while catching real failures.
Forgetting <code>next()</code> in Express middleware causes requests to hang indefinitely. Always call <code>next()</code> unless you are terminating the request via <code>res.send()</code> or passing an error via <code>next(err)</code>.
Glitch's .env, instant deploy, and free-tier sleep make prototyping fast — but they're not production-grade. Learn the actual behavior, verify it yourself, and decide when to graduate to a real secret store.