MICROPUEBits
Docs5 StarsLog In / Sign UpLog In

Backend Patterns

Group·5 snippets·Updated Oct 22, 2026

Spraing@spraing0328

About

Official Bits examples for services, APIs and concurrent workloads. Curated by the Bits team; not user submissions.

Tags

backendexamplesofficial
Snippets5
Forks0
Favorites1
KotlinOct 22, 2026

Group and sum with stdlib

Official Bits example. Aggregate orders by customer using groupingBy and fold, without pulling in a collections library.

functionalkotlincollectionsbackend
010
ScalaOct 22, 2026

Config validation with Either

Official Bits example. Validate configuration values with Either and toIntOption, returning a useful error instead of throwing.

configscalaeithervalidation
000
ElixirOct 22, 2026

GenServer counter

Official Bits example. A minimal OTP GenServer that keeps state, handles asynchronous casts and exposes a synchronous read.

concurrencyelixirotpgenserver
000
SwiftOct 22, 2026

Async URLSession JSON fetch

Official Bits example. Fetch and decode JSON with async/await, a custom CodingKey and an explicit status-code check.

asyncswifthttpjson
000
GoOct 22, 2026

HTTP middleware chain

Official Bits example. Compose reusable HTTP middleware in Go with a small Chain helper and a request logger.

loggingmiddlewaregohttp
000