{"id":339,"date":"2026-11-24T12:00:00","date_gmt":"2026-11-24T12:00:00","guid":{"rendered":"https:\/\/rezachegini.com\/?p=339"},"modified":"2026-11-24T19:24:20","modified_gmt":"2026-11-24T19:24:20","slug":"building-a-job-board-api-part-26-12-seconds-and-4-copies","status":"publish","type":"post","link":"https:\/\/rezachegini.com\/?p=339","title":{"rendered":"Building a Job Board API, Part 26: 12 Seconds and 4 Copies"},"content":{"rendered":"<p>I&#8217;m sharing one of my projects here from the beginning, step by step. It&#8217;s a Job Board API built with Django, Django REST Framework, PostgreSQL and Docker Compose, with S3 and SQS (through LocalStack), Redis, and a background worker.<\/p>\n<p>I&#8217;m a junior engineer looking for my first role in DevOps, SRE or Cloud. That&#8217;s why I build projects like this and write about them in public. It shows how I think, and writing it down helps me really understand it.<\/p>\n<p>In Part 24, I ran Azure Service Bus locally. In Part 25, I wrote ServiceBusQueue, and tested it with small, isolated checks. This part is the real test: the real API and the real worker, both running with CLOUD_PROVIDER=azure, connected only through Service Bus.<\/p>\n<p>The good news first: it works. A status change on the API went through Service Bus to the worker and became one email. A poison message was dead-lettered by Service Bus after 3 failed deliveries. And the worker survived a broker outage.<\/p>\n<p>But the run also found two real problems, the kind that isolated checks can&#8217;t find:<\/p>\n<ol class=\"wp-block-list\">\n<li>A broker outage made users wait. A status change took 12.03 seconds while the broker was stopped.<\/li>\n<li>A frozen broker turned one message into 4 copies, while the API&#8217;s log said the message wasn&#8217;t queued.<\/li>\n<\/ol>\n<p>This article is about finding both, understanding them, and fixing them.<\/p>\n<h3 class=\"wp-block-heading\">How I ran the real API and worker on Azure<\/h3>\n<pre class=\"wp-block-code\"><code>docker compose run -d --name jb-azure-worker --no-deps -e CLOUD_PROVIDER=azure worker\ndocker compose run -d --name jb-azure --no-deps -e CLOUD_PROVIDER=azure -p 127.0.0.1:8017:8006 api<\/code><\/pre>\n<ul class=\"wp-block-list\">\n<li>docker compose run SERVICE creates a one-off container from that service&#8217;s definition: its image, its env file, its bind mount, and its default command. So the worker runs the worker, and the API runs the dev server.<\/li>\n<li>-e CLOUD_PROVIDER=azure is the only difference from my normal AWS api and worker, which keep running next to these. They read SQS, so they never see these messages.<\/li>\n<li>-p 127.0.0.1:8017:8006 gives the Azure API its own port, on localhost only, because compose run doesn&#8217;t publish ports by default.<\/li>\n<li>Same database and same SECRET_KEY, so a JWT from the AWS API also works on the Azure API.<\/li>\n<\/ul>\n<h3 class=\"wp-block-heading\">The first run<\/h3>\n<h3 class=\"wp-block-heading\">What worked<\/h3>\n<ul class=\"wp-block-list\">\n<li>The worker started: Worker started, queue sb:\/\/servicebus\/job-board-status.<\/li>\n<li>Readiness on the Azure API said ready: database 7.6 ms, cache 2.4 ms, and queue 1003.5 ms. That&#8217;s the 1-second emulator connection from Part 25.<\/li>\n<li>End to end: PATCH 200 in 0.67 s, then the API logged Queued application.status_changed for application 3 (message 9b29ee91-&#8230;), then the worker logged Emailed user 5 about application 3: reviewing -&gt; interview (event 41579af6-&#8230;). Exactly one email, and a peek found main 0 and dead-letter 0.<\/li>\n<li>A poison message: a message with an unknown type failed 3 times, then appeared in the dead-letter queue with MaxDeliveryCountExceeded and a delivery count of 3.<\/li>\n<li>Recovery after an outage: after I started the broker again, a PATCH took 0.61 s and the email arrived. Both sides reconnected on their own, thanks to _discard from Part 25.<\/li>\n<\/ul>\n<p>Why is the end-to-end check real proof? The message ID in the API&#8217;s log (9b29&#8230;) is the one my send() created. The event ID in the worker&#8217;s log (41579af6&#8230;) comes from the message body that the publisher built. And peek showing main 0 proves the worker completed the message, because locked messages still show up in a peek.<\/p>\n<p>The poison check is right too. My worker has no dead-letter code at all. It just leaves a failing message unsettled, so each delivery waits for the 30-second lock (about 90 seconds for 3). Then Service Bus moves it to the dead-letter queue, just as SQS&#8217;s redrive policy did.<\/p>\n<h3 class=\"wp-block-heading\">Problem 1: a stopped broker, and a 12-second request<\/h3>\n<p>With the broker stopped, the worker kept running and logged Could not receive messages, as designed. The API logged Could not queue, also as designed. But the PATCH took 12.03 seconds.<\/p>\n<p>Why? The publish runs inside the request, in Django&#8217;s on_commit (Part 10). It went through my client with retry_total=3 and growing pauses between attempts. Fine for a background worker. Not fine for a person waiting for a response.<\/p>\n<h3 class=\"wp-block-heading\">Problem 2: a frozen broker, and 4 copies<\/h3>\n<p>With the broker frozen, the API logged Could not queue. But after I unpaused it, the worker logged Emailed &#8230; interview -&gt; reviewing (event 4d6a6d07-&#8230;), and then three times: Event 4d6a6d07-&#8230; already processed; skipping duplicate.<\/p>\n<p>So the API said the message wasn&#8217;t queued, and the worker received it four times. Here&#8217;s how those logs fit together:<\/p>\n<ol class=\"wp-block-list\">\n<li>The PATCH called send(). The sender&#8217;s connection was already open, so each attempt reached the broker&#8217;s socket. But the frozen broker never confirmed it.<\/li>\n<li>After try_timeout=5, the SDK resent the message. With retry_total=3, that&#8217;s 4 attempts. All 4 timed out, so the publisher logged Could not queue.<\/li>\n<li>When the broker unfroze, it processed all 4 copies. It had accepted every one of them.<\/li>\n<li>The worker emailed once and skipped 3 duplicates by event_id, thanks to the idempotency from Part 12.<\/li>\n<\/ol>\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1467\" height=\"531\" src=\"http:\/\/rezachegini.com\/wp-content\/uploads\/2026\/11\/job-board-api-part-26-diagram.png\" alt=\"A frozen broker: four copies and a wrong log line, then one copy\" class=\"wp-image-341\" srcset=\"https:\/\/rezachegini.com\/wp-content\/uploads\/2026\/11\/job-board-api-part-26-diagram.png 1467w, https:\/\/rezachegini.com\/wp-content\/uploads\/2026\/11\/job-board-api-part-26-diagram-300x109.png 300w, https:\/\/rezachegini.com\/wp-content\/uploads\/2026\/11\/job-board-api-part-26-diagram-1024x371.png 1024w, https:\/\/rezachegini.com\/wp-content\/uploads\/2026\/11\/job-board-api-part-26-diagram-768x278.png 768w\" sizes=\"auto, (max-width: 1467px) 100vw, 1467px\" \/><\/figure>\n<p>Idempotency saved the candidate from 4 emails. But the API&#8217;s log said the opposite of what happened, and every duplicate still cost a receive, a database transaction and a log line.<\/p>\n<p>This is the lesson of the whole step: a sender that gives up waiting doesn&#8217;t mean the message was lost. That&#8217;s at-least-once delivery. It&#8217;s only safe when the consumer is idempotent.<\/p>\n<h3 class=\"wp-block-heading\">Choosing the fix<\/h3>\n<p>There were three options:<\/p>\n<ol class=\"wp-block-list\">\n<li>Bound it: a smaller retry budget for sending, a hard time limit, and duplicate detection on the queue.<\/li>\n<li>A transactional outbox: save the event in the database together with the status change, and let a separate relay send it later. This fixes the waiting and the lost events, on both clouds. But it&#8217;s a much bigger change, beyond this phase&#8217;s checklist.<\/li>\n<li>Only document it, which would leave a request that could hang forever.<\/li>\n<\/ol>\n<p>I chose &#8220;bound it&#8221;. It fixes the user-facing wait inside this phase, with the same publish-in-request design I already have for SQS. The outbox is the right long-term fix for lost events, and I recorded it as a known limitation.<\/p>\n<h3 class=\"wp-block-heading\">Fix 1: duplicate detection on the queue<\/h3>\n<p>In servicebus\/Config.json:<\/p>\n<pre class=\"wp-block-code\"><code> \"DuplicateDetectionHistoryTimeWindow\": \"PT5M\",\n              ...\n              \"RequiresDuplicateDetection\": true,<\/code><\/pre>\n<ul class=\"wp-block-list\">\n<li>RequiresDuplicateDetection: true: the broker remembers every message_id it accepted during the window, and silently drops any later message with the same ID. The sender still gets a success.<\/li>\n<li>Why it works with my code: send() creates the message_id once, before any SDK retry. Every resend of the same message carries the same ID, so the copies are dropped. That one line from Part 25 turned out to be the key.<\/li>\n<li>PT5M is 5 minutes, the emulator&#8217;s maximum (more on that in the problems). Real Azure allows up to 7 days. Five minutes is plenty, because the resends I want to drop come within a few seconds.<\/li>\n<li>I changed the file with a script, not by hand: json.load, set two keys, then json.dump. The file can&#8217;t become invalid JSON, and an assert on the queue name makes sure it changes the right queue.<\/li>\n<\/ul>\n<p>In Part 24, I wrote &#8220;not needed, because the worker is idempotent&#8221;. Evidence reversed that decision. Idempotency stops duplicate emails. But each duplicate still costs a receive, a database transaction and a log line. Dropping them at the broker is cheaper, and it keeps the worker&#8217;s logs honest.<\/p>\n<p>The emulator only reads Config.json at startup, so I recreated the container with &#8211;force-recreate servicebus.<\/p>\n<h3 class=\"wp-block-heading\">Fix 2: a send client with a small budget<\/h3>\n<pre class=\"wp-block-code\"><code> # Sending happens inside web requests: a small retry budget, so a broken broker\n        # costs the user seconds, not minutes. The worker's receiver keeps self._client.\n        self._send_client = ServiceBusClient.from_connection_string(\n            connection_string, retry_total=1, try_timeout=2\n        )<\/code><\/pre>\n<p>A second client, used only for sending, with limits that fit a person waiting for a response: at most 2 attempts (the first plus 1 retry), and at most 2 seconds each.<\/p>\n<p>The worker&#8217;s receiver keeps the original client (retry_total=3, try_timeout=5), because waiting longer is fine there. No user is waiting, and giving up too early would just add log noise. It doesn&#8217;t add connections in practice: the API process only sends, and the worker process only receives, so each process uses one of the two clients.<\/p>\n<h3 class=\"wp-block-heading\">Fix 3: send() with a hard limit<\/h3>\n<p>Part 25 showed that no SDK setting limits the AMQP login. So send() got the same kind of deadline as ping():<\/p>\n<pre class=\"wp-block-code\"><code> SEND_SECONDS = 3\n\n    def send(self, body: dict) -&gt; str:\n        # One id for the message, created BEFORE any retry: every resend carries the same id,\n        # and the queue's duplicate detection drops the extra copies.\n        message_id = str(uuid.uuid4())\n        message = ServiceBusMessage(json.dumps(body), message_id=message_id)\n\n        if not self._send_lock.acquire(timeout=1):\n            raise ServiceBusError(\"Previous send still running; the broker is not answering\")\n        outcome = {}\n\n        def attempt():\n            try:\n                if self._sender is None:\n                    self._sender = self._send_client.get_queue_sender(self.name)\n                self._sender.send_messages(message)\n            except Exception as exc:\n                outcome[\"error\"] = exc\n                self._sender = self._discard(self._sender)\n            finally:\n                self._send_lock.release()\n\n        thread = threading.Thread(target=attempt, name=\"servicebus-send\", daemon=True)\n        thread.start()\n        thread.join(self.SEND_SECONDS)\n        if thread.is_alive():\n            raise ServiceBusError(\n                f\"Send not confirmed within {self.SEND_SECONDS} s; message {message_id} may still be delivered\"\n            )\n        if \"error\" in outcome:\n            raise outcome[\"error\"]\n        return message_id<\/code><\/pre>\n<ul class=\"wp-block-list\">\n<li>SEND_SECONDS = 3 is the most a request waits for the publish. On a healthy broker, a send takes milliseconds.<\/li>\n<li>message_id comes before everything else. This is what makes duplicate detection work with the SDK&#8217;s retries and with my own timeout. If the thread is still sending after I stop waiting, it sends the same ID.<\/li>\n<li>acquire(timeout=1), not blocking=False like in ping(). Two requests publishing at the same moment is normal, and a healthy send is quick. So the second request should wait briefly, not fail. But not forever: if a send thread is stuck on a frozen broker, it holds the lock, and every later request would wait forever. With timeout=1, they fail after 1 second. So the worst case for a request is 1 second for the lock plus 3 for the send: 4 seconds.<\/li>\n<li>join(3) then is_alive(): the same deadline pattern as ping(). It limits everything inside attempt(), including the login step.<\/li>\n<li>An honest error message: &#8220;Send not confirmed within 3 s; message &#8230; may still be delivered&#8221;. The thread might still deliver it after I stop waiting. So anyone reading the log learns it&#8217;s an unconfirmed send, not a definitely lost one.<\/li>\n<li>ServiceBusError is in QUEUE_ERRORS, so the publisher catches it. The request returns 200, and the status change is saved either way.<\/li>\n<\/ul>\n<h3 class=\"wp-block-heading\">After the fix<\/h3>\n<p>Before every check, I made sure the broker was really ready. A helper waits for Successfully Up in the logs since the restart, and prints BROKER NOT READY if it never comes, because of problem 3 below.<\/p>\n<h3 class=\"wp-block-heading\">Check 1: duplicate detection<\/h3>\n<p>Two sends with the same message_id, then a peek: DUP peek 1. The broker kept one copy.<\/p>\n<p>I used a fresh ID, dup-test-2. Why not reuse dup-test-1 from an earlier run? It could still be inside the 5-minute window. Then even the first send would have been dropped, and the check would prove nothing.<\/p>\n<h3 class=\"wp-block-heading\">Check 2: a healthy broker<\/h3>\n<p>PATCH normal: reviewing -&gt; interview 200 in 0.507 s, then the email. The thread, the lock and the second client add no visible cost when everything works. (It was 0.67 s before the fix, in a different run of the same path.)<\/p>\n<h3 class=\"wp-block-heading\">Check 3: a stopped broker<\/h3>\n<p>PATCH stopped: interview -&gt; reviewing 200 in 1.837 s. It was 12.03 seconds. A stopped container&#8217;s name doesn&#8217;t resolve, so each attempt fails at once. What&#8217;s left is the send client&#8217;s one retry pause.<\/p>\n<p>200 is the right answer: the status change is saved, and the event is logged as not queued. That&#8217;s the same known limitation as SQS: events are lost while the queue is down.<\/p>\n<h3 class=\"wp-block-heading\">Check 4: a frozen broker with a fresh connection, the case that used to hang<\/h3>\n<p>The setup matters here:<\/p>\n<ol class=\"wp-block-list\">\n<li>Start the broker and wait until it&#8217;s ready: broker ready after ~28s.<\/li>\n<li>Restart the API container, so its process has no sender yet.<\/li>\n<li>Pause the broker.<\/li>\n<\/ol>\n<p>Now the first send() must open a new connection, which hangs in the login step.<\/p>\n<p>The result: PATCH frozen, new connection: reviewing -&gt; interview 200 in 3.021 s. That&#8217;s SEND_SECONDS plus the request&#8217;s own work. Without the deadline, this request would have waited until the broker came back, possibly forever.<\/p>\n<p>And after I unpaused the broker, the worker logged Emailed user 5 about application 3: reviewing -&gt; interview. The stuck thread finished its login once the broker answered, and the message was delivered. &#8220;May still be delivered&#8221;, in action.<\/p>\n<h3 class=\"wp-block-heading\">Check 5: a frozen broker with an open connection, the duplicate case again<\/h3>\n<p>First a warm-up PATCH, so the sender link was open. Then I counted the worker&#8217;s already processed lines, and paused the broker.<\/p>\n<ul class=\"wp-block-list\">\n<li>PATCH frozen, open connection: interview -&gt; reviewing 200 in 3.021 s, with Could not queue logged.<\/li>\n<li>After unpausing and waiting 60 seconds: one Emailed line.<\/li>\n<li>new duplicates: 0.<\/li>\n<\/ul>\n<p>Why count before and after? The worker&#8217;s log already had already processed lines from earlier runs. Only the difference belongs to this check.<\/p>\n<p>Before the fix: 1 email and 3 duplicates. After: 1 email and 0. The broker dropped the resends.<\/p>\n<h3 class=\"wp-block-heading\">The four numbers that matter<\/h3>\n<p>How long a user waited for a status change:<\/p>\n<ul class=\"wp-block-list\">\n<li>Healthy broker: 0.51 s.<\/li>\n<li>Stopped broker: 1.84 s, down from 12.03 s.<\/li>\n<li>Frozen broker, new connection: 3.02 s, down from &#8220;possibly forever&#8221;.<\/li>\n<li>Frozen broker, open connection: 3.02 s, and the message still arrived once.<\/li>\n<\/ul>\n<h3 class=\"wp-block-heading\">Check 6: clean-up and the suite<\/h3>\n<p>Both queues ended empty (CLEAN main 0, CLEAN dead-letter 0). The test suite: exit code: 0, 203 passed, coverage 89.64%, down from 90.99% because the new send() branches aren&#8217;t tested yet. SQL Server had grown to 1003 MiB, from 734 MiB right after startup, still below its 2048 MB limit.<\/p>\n<h3 class=\"wp-block-heading\">Problems I hit<\/h3>\n<p>The 12-second wait and the 4 copies were the problems this run was for. These are the ones I hit while fixing them.<\/p>\n<h3 class=\"wp-block-heading\">1. The emulator crash-looped, and everything looked plausible<\/h3>\n<p>For duplicate detection, I first set the window to PT10M, 10 minutes. After that:<\/p>\n<ul class=\"wp-block-list\">\n<li>every PATCH took the same 1.63 seconds, because sends failed fast;<\/li>\n<li>there were no Emailed lines at all;<\/li>\n<li>docker compose stop took 2.8 seconds instead of the usual 10.<\/li>\n<\/ul>\n<p>Nothing crashed loudly. Every check just &#8220;failed fast&#8221; in a way that looked believable. I found it with docker inspect -f &#8216;{{.RestartCount}}&#8217;, which said 14. The emulator&#8217;s last 40 log lines explained it:<\/p>\n<pre class=\"wp-block-code\"><code>Expected time to be less than or equal to 5m because Max Duplicate detection window supported 5m, but found 10m.<\/code><\/pre>\n<p>The emulator refuses to start with a window over 5 minutes, and restart: unless-stopped from Part 24 kept restarting it, forever. The stop was fast because the container was between restarts. With PT5M: 0 restarts, ready.<\/p>\n<p>The lesson: after any broker config change, gate every check on the broker being ready. That&#8217;s why the BROKER NOT READY line exists now. A dead broker shouldn&#8217;t be able to make a bad run look like a good one.<\/p>\n<h3 class=\"wp-block-heading\">2. Missing output, twice<\/h3>\n<p>Twice, part of my output went missing: the first run&#8217;s frozen PATCH timing line, and checks 1 to 4 of the first fixed run. I noticed because the results I could see didn&#8217;t add up: CLEAN dead-letter 0, when I expected a message there. So I reran the checks inside { &#8230; } 2&gt;&amp;1 | tee \/tmp\/partc-1-4.txt, so the output was also saved to a file. When results don&#8217;t add up, check that you&#8217;re seeing all of them.<\/p>\n<h3 class=\"wp-block-heading\">3. A message that disappeared<\/h3>\n<p>dup-test-1, a test message from an earlier run, never reached the dead-letter queue. Why? In that run, I stopped the broker less than 90 seconds after sending it, so it hadn&#8217;t failed 3 times yet. And the emulator rebuilds its databases on every start. The SQL Server log showed it deleting and re-creating SbMessageContainerDatabase00001. So restarting the emulator empties the queue, and that message was simply gone.<\/p>\n<p>That&#8217;s an emulator property, not my code. Real Service Bus keeps messages through outages. But it&#8217;s worth knowing before trusting any &#8220;before and after a restart&#8221; check on the emulator.<\/p>\n<h3 class=\"wp-block-heading\">Known limitations<\/h3>\n<ul class=\"wp-block-list\">\n<li>Events published while the broker is down are lost, logged as Could not queue, on both clouds. The transactional outbox would fix this. It&#8217;s noted for later.<\/li>\n<li>An unconfirmed send may still be delivered. That&#8217;s safe, because of duplicate detection and idempotency. But the API log alone can&#8217;t say whether a Could not queue event was really lost. Check the worker&#8217;s log for its event ID.<\/li>\n<li>During a long freeze, one send thread stays stuck per API process, holding the send lock. Later requests wait 1 second, then fail fast. It clears when the broker answers.<\/li>\n<li>The worker&#8217;s receiver has no thread deadline. It isn&#8217;t on a user&#8217;s path, and in the first run it recovered by itself after the broker unfroze. A worker stuck in the login would just be quiet until the broker returns.<\/li>\n<li>The emulator caps duplicate detection at 5 minutes, and restarting it empties the queue. Real Azure allows 7 days, and keeps messages.<\/li>\n<\/ul>\n<h3 class=\"wp-block-heading\">AWS vs Azure<\/h3>\n<ul class=\"wp-block-list\">\n<li>Duplicate detection is one queue setting on Service Bus, keyed on message_id. On AWS, it needs a FIFO queue, which also changes ordering and throughput. Here it was one line of config, because my message ID was already stable across retries.<\/li>\n<li>A frozen connection behaves differently. botocore&#8217;s read timeout ends an HTTP call cleanly. Service Bus&#8217;s long-lived AMQP connection can hang in its login step, so the deadline has to live in my code.<\/li>\n<li>The dead-letter queue works the same way in practice: 3 deliveries, then the broker moves it. Service Bus also says why.<\/li>\n<\/ul>\n<h3 class=\"wp-block-heading\">Why I chose this way<\/h3>\n<ul class=\"wp-block-list\">\n<li>Bound it, instead of an outbox for now. It fixes the user&#8217;s wait inside this phase.<\/li>\n<li>SEND_SECONDS = 3. A healthy publish takes milliseconds, so 3 seconds is noticeable but bounded during an outage. One second risked false failures with the emulator&#8217;s slower operations, and 10 is too long for a person.<\/li>\n<li>A separate send client. Fewer resends and a shorter worst case on the user&#8217;s path, without taking retries away from the worker.<\/li>\n<li>Waiting 1 second for the send lock. Normal concurrent publishes wait briefly, but a stuck send can&#8217;t stall every request.<\/li>\n<li>Duplicate detection at the broker, because it&#8217;s cheaper than dropping duplicates in the worker, and it keeps the worker&#8217;s logs honest.<\/li>\n<\/ul>\n<h3 class=\"wp-block-heading\">What I learned<\/h3>\n<ul class=\"wp-block-list\">\n<li>Isolated checks can&#8217;t find everything. The real API and worker found two problems that the class-level checks in Part 25 couldn&#8217;t.<\/li>\n<li>Time budgets should match the caller. A user&#8217;s request gets a small budget and a hard deadline. A background worker can wait longer.<\/li>\n<li>&#8220;Could not send&#8221; doesn&#8217;t mean &#8220;not sent&#8221;. At-least-once delivery means the consumer must be idempotent.<\/li>\n<li>Duplicate detection needs a stable message ID, created once, before any retry.<\/li>\n<li>Make error messages honest: &#8220;not confirmed, may still be delivered&#8221;.<\/li>\n<li>acquire(timeout=&#8230;) vs acquire(blocking=False): wait briefly when contention is normal, fail at once when contention means trouble.<\/li>\n<li>Match IDs across logs (message ID, event ID, peek counts) to prove what really happened.<\/li>\n<li>Stopped, frozen and restarted are three different failures, and each needs its own test.<\/li>\n<li>Gate checks on readiness, or a dead dependency can make a bad run look plausible.<\/li>\n<li>Evidence beats earlier decisions. I turned duplicate detection off in Part 24, and the data turned it back on.<\/li>\n<\/ul>\n<h3 class=\"wp-block-heading\">What comes next<\/h3>\n<p>This completes the second item of Phase 6: the queue switches between SQS and Service Bus with CLOUD_PROVIDER, and the same API and worker code runs on both clouds, end to end. Together with Part 23, both storage and queue now switch with one environment variable.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m sharing one of my projects here from the beginning, step by step. It&#8217;s a Job Board API built with Django, Django&hellip;<\/p>\n","protected":false},"author":2,"featured_media":340,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_rezaops_part":"26","_rezaops_linkedin_url":"https:\/\/www.linkedin.com\/pulse\/building-job-board-api-part-26-12-seconds-4-copies-reza-chegini-kqbfc\/","footnotes":""},"categories":[50,10,116],"tags":[52,220,8,111,35,191,118,25,112],"series":[117],"class_list":["post-339","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-azure","category-devops","category-django","tag-azure","tag-azure-service-bus","tag-devops","tag-django","tag-docker","tag-drf","tag-job-board","tag-python","tag-rest-api","series-job-board-api"],"jetpack_featured_media_url":"https:\/\/rezachegini.com\/wp-content\/uploads\/2026\/11\/job-board-api-part-26-cover.png","_links":{"self":[{"href":"https:\/\/rezachegini.com\/index.php?rest_route=\/wp\/v2\/posts\/339","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rezachegini.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rezachegini.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rezachegini.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/rezachegini.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=339"}],"version-history":[{"count":1,"href":"https:\/\/rezachegini.com\/index.php?rest_route=\/wp\/v2\/posts\/339\/revisions"}],"predecessor-version":[{"id":342,"href":"https:\/\/rezachegini.com\/index.php?rest_route=\/wp\/v2\/posts\/339\/revisions\/342"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/rezachegini.com\/index.php?rest_route=\/wp\/v2\/media\/340"}],"wp:attachment":[{"href":"https:\/\/rezachegini.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=339"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rezachegini.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=339"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rezachegini.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=339"},{"taxonomy":"series","embeddable":true,"href":"https:\/\/rezachegini.com\/index.php?rest_route=%2Fwp%2Fv2%2Fseries&post=339"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}