FORWARD-DEPLOYED ENGINEERING 101 · FREE, NO MODEL KEY
Understand it.
Then build it.
You can be an experienced engineer and still be new to agents. Start with what each thing is and how it helps a person do useful work. Explore 64 original introductions across software, agents, cloud, security and delivery. Start here without a model key; each topic connects to deeper instruction and practice.
A place to start.
Choose a short reading route, or look up a concept below.
- 101UnderstandPlain language, visual walkthrough, vocabulary
- 102Build with guidanceOriginal lessons, examples and knowledge checks
- 103Practise and explainRunnable labs, failure cases and handover
Reliable distributed work
Why use queues, workers and idempotency?
A queue holds work for a worker to process outside the original request. A lease temporarily assigns that work. Idempotency means repeating an operation has the same intended effect as doing it once. These concepts matter because messages and requests can be delivered more than once.
Agent tasks are often slower than web requests and depend on unreliable remote services.
UNDERSTAND THE SYSTEM
Follow one job through two deliveries
A queue retains instructions for a worker to process later. Accepting the job, writing its result and acknowledging a delivery are separate events. Follow the fictional J-12 draft to see why a missing acknowledgement does not mean the work never happened.
Read the connections in plain English
- 01Request API → Message broker
Acceptance retains the instruction; it does not prove the draft exists.
- 02Message broker → Worker program
The worker receives a temporary delivery. This is not an exactly-once business guarantee.
- 03Worker program → Saved draft
Write the local effect and its operation receipt together.
- 04Worker program → Operation receipt
Match tenant, action and input. A changed input under the same key must conflict.
- 05Worker program → Message broker
Confirm that the current delivery was handled after the local result exists.
Check your understanding: If A acknowledges first and then stops before saving the draft, what would the queue know?
It would consider the delivery handled even though there is no draft. The early-ack lab case has a settled message and zero effects. Confirm the intended result before acknowledging; preserve a stable operation identity for retries.
CONNECT IT TO WHAT YOU KNOW
Start with something familiar.
A work-order desk can hand the same ticket to a replacement technician after an interruption. The ticket identifier must prevent two separate jobs from being created accidentally.
A timeout means the result is unknown, not necessarily that the operation failed. Reconcile the recorded outcome before repeating an irreversible action.
Words worth knowing
- Queue
- A buffer of work waiting for processing.
- Lease
- Temporary permission to work on a task.
- Idempotency key
- A stable identifier used to recognize repeat requests for the same operation.
Useful foundations
Open a definition and diagram here. Your lesson stays in place.
A software contractWhat is an API?
QUICK REFERENCE / 101
What is an API?
An application programming interface (API) is an agreed way for one piece of software to use another. It specifies operations, inputs, outputs and errors. Some APIs are local functions; a web API exchanges requests and responses across a network.
An agent becomes useful through connections to business systems. Those connections need clear contracts and failure behavior.
Packaging and operating softwareWhat are containers and deployment?
QUICK REFERENCE / 101
What are containers and deployment?
An image is a reusable package containing an application's files and startup configuration. A container is one isolated instance created from that image; it can be running or stopped. Docker is a tool for building images and managing containers. Deployment adds the environment, identity, networking, storage and operating decisions needed to run the application.
A laptop demo must survive deployment, restarts and handover to a team that did not build it.
ONE EXAMPLE / FICTIONAL CASE
Follow the connections.
A ticket was stored, but the worker died before it acknowledged completion.
UNDERSTAND THE SYSTEM
Follow one job through two deliveries
A queue retains instructions for a worker to process later. Accepting the job, writing its result and acknowledging a delivery are separate events. Follow the fictional J-12 draft to see why a missing acknowledgement does not mean the work never happened.
Accept without finishing
Read the full worked example
- 01Accept without finishing
The coordinator receives job ID J-12. No worker has created the draft yet.
What can the UI say?: Accepted · not yet finished
- 02Receive the first delivery
A receives J-12 at tick 0. In the lab model it is in flight until tick 5 unless acknowledged sooner.
Different identities: Delivery 1 · operation J-12:draft:v1
- 03Commit the business effect
A stores the draft and its receipt in one local transaction. The broker still has no acknowledgement.
Two separate records: Draft committed · delivery still unacknowledged
- 04Stop before acknowledgement
A stops responding. At tick 5 the interval expires. The draft remains in the database; silence does not undo the write.
What is missing?: The acknowledgement, not necessarily the business result
- 05Reuse the same action
B receives delivery 2 and matches the same tenant, operation key and payload. The safe lab path reuses the receipt instead of writing another draft.
Observed safe case: 2 deliveries · 1 intended action · 1 saved draft
- 06Acknowledge after the effect
B acknowledges its current delivery at tick 6. The queue settles the message. Without the receipt check, the lab's unsafe comparison creates two drafts.
Scope of this evidence: The local receipt and draft share a transaction; an external sending API needs its own recovery contract.
Read the connections in plain English
- 01Request API → Message broker
Acceptance retains the instruction; it does not prove the draft exists.
- 02Message broker → Worker program
The worker receives a temporary delivery. This is not an exactly-once business guarantee.
- 03Worker program → Saved draft
Write the local effect and its operation receipt together.
- 04Worker program → Operation receipt
Match tenant, action and input. A changed input under the same key must conflict.
- 05Worker program → Message broker
Confirm that the current delivery was handled after the local result exists.
Check your understanding: If A acknowledges first and then stops before saving the draft, what would the queue know?
It would consider the delivery handled even though there is no draft. The early-ack lab case has a settled message and zero effects. Confirm the intended result before acknowledging; preserve a stable operation identity for retries.
Work through it, step by step.
Accept
Store a stable request identifier and enqueue bounded work.
What you have now: A trackable job
Lease and process
A worker claims the job for a limited interval. Expired leases can be recovered without assuming the side effect never happened.
What you have now: An owned attempt
Reconcile
Look up the operation's existing result before retrying a write. Unresolved outcomes need an explicit recovery state.
What you have now: One intended business effect
QUEUES 101 · FOLLOW ONE JOB
Delivered is not the same as done.
A queue holds a request. A worker does the work. An acknowledgement tells the queue the message was handled. Follow each one alongside the draft actually saved in a database.
Write, then acknowledge
A coordinator requests a maintenance draft for job J-12. A queue holds that request; a worker is the program that picks it up. Watch worker A save the draft before telling the queue it has handled the message.
Predict the final recorded state
You can replay without a prediction. Each step reads committed state from the recorded local run.
FROM RECOGNITION TO REASONING
Compare a lost acknowledgement with a missing business effect.
- 01
Predict the message state and saved-draft count at each visual event.
- 02
Run the four cases in the free Queue 101 lab and compare their actual database writes.
- 03
Change the operation key on retry and explain why a receipt for the original action no longer prevents another draft.
Four observed delivery traces and an explanation of the stable operation identity.
Compare your reasoning when you are ready
Exactly-once business behavior needs an end-to-end contract, not a promise from a queue alone. The receiver's recorded result matters when the response disappears.
Keep notes in your own working copy. Moving through these cards does not record completion.
TURN THE IDEA INTO USEFUL WORK
You can now go deeper.
A timeout means the result is unknown, not necessarily that the operation failed. Reconcile the recorded outcome before repeating an irreversible action.
Academy lessons use your existing training access. Free guides stay open.