SShortSingh.
Back to feed

Parcels Held Back by Short SQS Polling Caused Late Marketplace Despatches

0
·2 views

A warehouse despatch job that sends tracking numbers to a major marketplace stopped early after receiving an empty response from Amazon's SQS queue. Because the rewritten Python script used short polling, which queries only a random subset of SQS servers, it treated the empty reply as the queue being empty and left parcels behind for the next day's feed. The late despatch rate rose from under one percent to six in October, triggering a warning from the marketplace, even though the parcels had left the warehouse on time. The fix includes long polling, a longer default wait time on the queue, and requiring two consecutive empty polls before stopping. Added safeguards include a reconciliation check at eleven and an alarm on the age of the oldest message.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

ffmpeg से वीडियो में सीन कट ढूँढकर उन्हीं बिंदुओं पर फ़ाइलें कैसे बाँटें

एडिट किए वीडियो में कट पहचानने के लिए ffmpeg का scene फ़िल्टर आमतौर पर पर्याप्त माना जाता है, पर यह लेख दो अनसुलझे सवाल उठाता है: सही threshold कैसे चुनें और कटों पर ही फ़ाइलें कैसे बाँटें। लेखक ने ffmpeg के अंदरूनी scoring तरीके को Python में दोबारा बनाकर उसे एक NASA launch वीडियो पर मापा है। विश्लेषण में दिखाया गया है कि showinfo के नतीजे stderr में आते हैं, न कि stdout में। हर फ़्रेम का score उसके और पिछले फ़्रेम के बीच औसत अंतर के बदलाव के आधार पर तय होता है, जिससे कैमरा शेक और असली कट में फ़र्क होता है। Y plane को yuv420p से लेना सटीक नतीजों के लिए ज़रूरी बताया गया है।

0
ProgrammingDEV Community ·

A Beginner's Guide to Reading Google Analytics Without Getting Overwhelmed

A digital marketer from Kerala offers a simplified introduction to Google Analytics for small business owners who find the tool intimidating. The free platform works like a camera inside a shop, revealing visitor counts, traffic origins, page views, and actions taken on a website. The article explains key terms such as users, sessions, traffic sources, engagement, and conversions in plain language. It recommends focusing on five core questions rather than every report, along with checking device type and visitor locations. A brief monthly review routine is suggested to track progress and choose one improvement for the following month.

0
ProgrammingDEV Community ·

LinkDigest reads top Xiaohongshu comments from share links without an account

Xiaohongshu offers no public comments endpoint, and its web page only expands comments after login. The share link copied from the app opens a public page that embeds up to five top comments, each with up to three replies. The LinkDigest service reads these in the same request as the note, requiring no Xiaohongshu account or cookies. The approach is limited: it returns only top comments and reply excerpts, never the full thread or commenter identities. Douyin videos return no comments because their embed player serves none.

0
ProgrammingDEV Community ·

Verifying Warranty Cards On-Chain: A Token-2022 Soulbound Receipt Checker

A repair-shop scenario illustrates the need to confirm whether a customer's warranty card is genuine without relying on screenshots or the holder's word. The article presents a verifier that checks a soulbound Token-2022 card using only public chain data, applying eight checks covering mint ownership, one-of-one supply, non-transferability, metadata location, issuing authority, warranty validity, order matching, and holder ownership. The verifier is a pure function over raw account data, making it reusable in servers, wallets, or agents. It returns every individual check result rather than a simple pass or fail, so staff can see exactly which requirement failed. The author notes the code is an unaudited, devnet-only educational example and that actual warranty decisions still depend on shop policy and consumer law.