{"id":2758,"date":"2026-11-16T15:00:00","date_gmt":"2026-11-16T15:00:00","guid":{"rendered":"https:\/\/keralaorbit.com\/blog\/?p=2758"},"modified":"2026-11-19T06:00:00","modified_gmt":"2026-11-19T06:00:00","slug":"serverlessops-symptoms-causes-booking-systems","status":"publish","type":"post","link":"https:\/\/keralaorbit.com\/blog\/serverlessops-symptoms-causes-booking-systems\/","title":{"rendered":"Five ServerlessOps Symptoms in a Booking System and Their Fixes"},"content":{"rendered":"<p>Say you run a small booking platform for backwater stays and houseboat cruises in Kerala. It is built from cloud functions: one takes the reservation, one confirms with the boat owner, one emails the guest. Things were smooth until Onam week, when five odd things happened. Guests got two confirmation emails. The page felt slow. A few reservations vanished without an error. A setting you changed did nothing. And the monthly bill crept up with no matching rise in bookings. Let us diagnose each, one symptom at a time, the friendly way, with the cause and the fix. The explanations follow the Ops Atlas, whose <a href=\"https:\/\/www.xopsschool.com\/serverlessops\/\">page on ServerlessOps<\/a> collects these patterns.<\/p>\n<h2>Symptom one: guests receive the same confirmation twice<\/h2>\n<p><strong>Likely cause.<\/strong> Two different problems produce this, and both are worth checking. The first is plain redelivery: a queue&#8217;s delivery promise is &#8220;at least once&#8221;, so seeing a message again is expected. The second is a timing mismatch. When a queue hands a message to your function, it hides the message from other workers for a set period. If that period is shorter than the time your function needs, the queue assumes the worker died and offers the message to another worker even though the first run has not finished. The entry&#8217;s rule of thumb is a hiding period of six function timeouts or more.<\/p>\n<p><strong>Fix.<\/strong> Lengthen the visibility setting until it spans six timeouts or more. Then make the confirmation step safe to repeat, by storing a record keyed on the reservation number before sending anything and skipping the send if the record exists. Avoid using the queue&#8217;s message ID as the key, because replays arrive with new ones.<\/p>\n<h2>Symptom two: the booking page feels slow and the bill climbs<\/h2>\n<p><strong>Likely cause.<\/strong> A synchronous chain. If the reservation function calls the confirmation function, which calls the email function, and each waits for the next, the first one sits idle while being billed for every second. The entry names synchronous function chains as a pattern to avoid, because the caller is billed during every second of waiting, and a slow link at the end stretches every link before it.<\/p>\n<p><strong>Fix.<\/strong> Break the chain with a queue or an event. The reservation function records the booking and hands off the rest, returning to the guest quickly. The confirmation and email steps then run on their own schedule. This also makes each step independently retryable, which is a helpful bonus.<\/p>\n<h2>Symptom three: reservations vanish and no alarm fires<\/h2>\n<p><strong>Likely cause.<\/strong> Your alarm watches only the error count. When a function processes a batch of reservations and three of them fail while the others succeed, the function itself did not crash, so the platform does not count an error. The three go back to the queue, fail again and eventually disappear into a failure box nobody reads. The Atlas calls out alarms on the error metric alone as an anti-pattern for this exact reason.<\/p>\n<p><strong>Fix.<\/strong> Switch the batch handler to report which items failed, so only those retry. Add one alarm for the wait time of the oldest queued message, and two more for what flows into the failure destination and how old its oldest entry is. Give that destination a named owner, a person who understands what a missing reservation means to a family waiting for a boat.<\/p>\n<h2>Symptom four: you changed a setting and nothing happened<\/h2>\n<p><strong>Likely cause.<\/strong> The entry records a deployment trap. A change that touches only parameters in the template can reach the unpublished latest version of a function while the version your alias points to stays untouched, unless a language-extensions transform is enabled. Your live traffic keeps using the old setting, and everyone swears the change was deployed.<\/p>\n<p><strong>Fix.<\/strong> After any parameter-only change, read the value back from the live alias, not from the console&#8217;s latest view. If it has not moved, enable the transform the Atlas mentions or publish a new version. Make that read-back part of your release checklist.<\/p>\n<h2>Symptom five: the bill grows faster than the bookings<\/h2>\n<p><strong>Likely cause.<\/strong> Several candidates. Billing includes the time spent initialising your code, so heavy start-up work costs money on every cold start. Retries multiply runs. A downstream dependency that has slowed down lengthens every run. Or the workload has simply become steady enough that a different compute model would be cheaper. The entry cites a 2023 case in which a streaming-video team found its per-step workflow charges too expensive for constant monitoring, and consolidated the logic into one container process. It also notes that when traffic is steady and heavy, containers or the managed-instances choice can undercut pay-per-use, even with a fifteen percent management fee.<\/p>\n<p><strong>Fix.<\/strong> Compute a cost per thousand bookings each month. The sheet&#8217;s own worked path comes to $3.75 per million events, and it is a useful shape for your own arithmetic. If the figure jumps without a volume change, look at duration and attempts per event first, and only then consider a different compute model.<\/p>\n<h2>How to trace a symptom when you are not sure which one it is<\/h2>\n<p>Real incidents rarely arrive labelled. A guest says only that something looked wrong. A useful routine is to follow one reservation from end to end and write down what happened at each hop. Start with the reservation number. Find the first function run that handled it, then every later run that touched the same number. If you see two runs minutes apart, you are looking at redelivery or a timing mismatch. If you see one run followed by silence, look in the failure destination. If you see one run that lasted far longer than usual, look at the dependency it called.<\/p>\n<p>This trace only works if every function logs the business identifier. It costs almost nothing and repays itself quickly: add the reservation number to every log line, and the story of any booking can be rebuilt in a couple of minutes. Without it, you are searching a haystack with a spoon.<\/p>\n<h2>Keep a symptom diary<\/h2>\n<p>After the festival, take an hour to write each symptom, its cause and its fix into a shared page, with the date. Over a few seasons the page becomes the most valuable document your team owns, because it records what your own system does under stress, which no vendor manual can tell you. New staff can read it in an afternoon and avoid months of rediscovery. It also keeps the conversation with boat owners and partners honest. When a confirmation arrives late, you can say exactly why and exactly what has changed.<\/p>\n<h2>A tidy diagnostic table in words<\/h2>\n<ul>\n<li>Duplicates: check redelivery and the visibility timeout, then add a business-key record.<\/li>\n<li>Slow and expensive: look for synchronous chains and replace them with a queue.<\/li>\n<li>Silent loss: look for error-only alarms and unowned failure destinations.<\/li>\n<li>Change had no effect: read the value back from the live alias.<\/li>\n<li>Creeping bill: look at duration, retries and start-up time before changing platforms.<\/li>\n<\/ul>\n<h2>Prevent the next Onam week<\/h2>\n<p>The best time to rehearse is well before the festival rush. Send the same reservation ten times into a test copy and see whether the guest gets one email. Slow down the boat owner&#8217;s confirmation call on purpose and watch your queue and your timeouts. Take down the email service for an hour and see where the messages go. In the entry&#8217;s vocabulary this drill is a game day for duplicate storms, and clearing it earns the third maturity level for critical paths.<\/p>\n<p>If you are planning your own trip around the festival, <a href=\"https:\/\/keralaorbit.com\/blog\/how-can-visitors-plan-their-first-trip-to-kerala\/\">suggestions for organising a first visit to the state<\/a> pair nicely with this checklist, and anyone curious about the engineering career behind systems like these can browse <a href=\"https:\/\/keralaorbit.com\/blog\/devopsschool-career-guide-learn-skills-build-projects-and-find-your-path\/\">a career guide on building skills and projects<\/a>.<\/p>\n<p>The takeaway is cheerful. Most of the strange behaviours in function-based systems have ordinary explanations, and each has a small fix. Treat every odd symptom as a puzzle, not a curse, write down what you learn, and your next festival week will be a lot calmer.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A Kerala houseboat booking platform shows five odd symptoms, from double emails to vanishing reservations, each diagnosed with a plain fix.<\/p>\n","protected":false},"author":7,"featured_media":2759,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2058],"tags":[],"class_list":["post-2758","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-travel-tech"],"_links":{"self":[{"href":"https:\/\/keralaorbit.com\/blog\/wp-json\/wp\/v2\/posts\/2758","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/keralaorbit.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/keralaorbit.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/keralaorbit.com\/blog\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/keralaorbit.com\/blog\/wp-json\/wp\/v2\/comments?post=2758"}],"version-history":[{"count":1,"href":"https:\/\/keralaorbit.com\/blog\/wp-json\/wp\/v2\/posts\/2758\/revisions"}],"predecessor-version":[{"id":2870,"href":"https:\/\/keralaorbit.com\/blog\/wp-json\/wp\/v2\/posts\/2758\/revisions\/2870"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/keralaorbit.com\/blog\/wp-json\/wp\/v2\/media\/2759"}],"wp:attachment":[{"href":"https:\/\/keralaorbit.com\/blog\/wp-json\/wp\/v2\/media?parent=2758"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/keralaorbit.com\/blog\/wp-json\/wp\/v2\/categories?post=2758"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/keralaorbit.com\/blog\/wp-json\/wp\/v2\/tags?post=2758"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}