FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
One Backend Pattern for HTTP, CLI, and Workflows
How-ToTools

One Backend Pattern for HTTP, CLI, and Workflows

via Dev.toArtem M3w ago

Recommended reading: The request context problem and Backend composables — the context model and composable pattern this article builds on. Most backend frameworks are HTTP frameworks that pretend otherwise. They might support WebSockets as a plugin. CLI tooling lives in a separate package. Scheduled jobs get wired through a queue library with its own conventions. And if the same business action needs to run from an API endpoint and a CLI command and a scheduled job, you write three wrappers around the same logic. Not because the logic is different. Because the framework assumed HTTP from the start. That is the problem I hit after building the composables layer from the previous article . The composables worked great inside HTTP handlers — but the moment I needed the same action from a CLI command or a workflow step, the HTTP-shaped context leaked everywhere. The duplication nobody talks about A pattern most teams know but rarely name. You build an API endpoint that generates a report:

Continue reading on Dev.to

Opens in a new tab

Read Full Article
21 views

Related Articles

Vibe Coding Isn’t for Everyone (And That’s the Point)
How-To

Vibe Coding Isn’t for Everyone (And That’s the Point)

Medium Programming • 23h ago

Sometimes We Make Mistakes (Meta’s Cost $80 Billion)
How-To

Sometimes We Make Mistakes (Meta’s Cost $80 Billion)

Medium Programming • 23h ago

Gate.io vs KuCoin — Which Crypto Exchange Is Better? (2026)
How-To

Gate.io vs KuCoin — Which Crypto Exchange Is Better? (2026)

Dev.to Beginners • 1d ago

How to Build a Real Multi-Agent Engineering Workflow With oh-my-claudecode
How-To

How to Build a Real Multi-Agent Engineering Workflow With oh-my-claudecode

Medium Programming • 1d ago

Clean Code Principles Every Software Engineer Should Follow
How-To

Clean Code Principles Every Software Engineer Should Follow

Medium Programming • 1d ago

Discover More Articles