micro-service-baz.dev · service 3 of 3 · v0.1.0 · status: up

baz

Responsibility: say baz.

baz is the third name: the one you use when an example has outgrown two variables and nobody has stopped to think of something better. baz is last to start and first to be blamed. It depends on bar, which depends on foo. Nothing depends on baz.

Contract

EndpointReturns
GET /word.txtbaz and a newline. text/plain.
GET /health.jsonStatus, version and the word. JSON.
GET /service.jsonThis contract, machine-readable. JSON.
$ curl -s https://micro-service-baz.dev/word.txt
baz

Upstream: bar (and so, transitively, foo).
Downstream: none.
Supervisor: minimal-supervisor.dev, strategy rest_for_one. baz restarts whenever foo or bar does. When baz itself restarts, nobody else has to.

Service level

baz is a static file. It is up whenever the host is up. It is the most-restarted service in the system, through no fault of its own.

Provenance of the word: disputed folklore

RFC 3092 (1 April 2001), the document written to explain foo, mentions baz only once, as the second entry on “the standard list of metasyntactic variables used in syntax examples (bar, baz, qux, quux, corge, grault, garply, waldo, fred, plugh, xyzzy, thud)”. It gives no origin for the word. Wikipedia’s article on metasyntactic variables lists baz but gives no etymology either.

A Jargon File mirror's “baz” entry goes further: it attributes the name to Pete Samson’s Tech Model Railroad Club lexicon, borrowed from Albert the Alligator’s catchphrases “Bazz Fazz!” and “Rowrbazzle!” in the comic strip Pogo (Jargon File, Lysator mirror). The primary page at catb.org refused the connection when this page was written, so this is mirror-sourced folklore, not a verified primary source. baz notes it, rather than claiming it.

Until a primary source turns up, baz takes the position that a placeholder whose history is disputed folklore is still more honest than a placeholder with an invented one.

The system