SShortSingh.
Back to feed

Adding one field to session data caused errors across a trade portal, and rolling back made them worse

0
·3 views

A Spring Boot trade portal running on eight pods stored user sessions in Redis using Java serialization. A release adding a preferred collection depot field to the session's customer context object triggered errors during a rolling rollout. Because the class lacked an explicit serialVersionUID, the new version produced an incompatible identifier, so pods running different versions could not read each other's sessions. Rolling back left thousands of sessions written by the new version unreadable to the old one, worsening the problem. The team fixed it by pinning the previous serialVersionUID with the JDK's serialver tool, then later moved sessions to JSON serialization with mandatory version checks and compatibility tests.

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 ·

Software Carbon Emissions Are Becoming a Measured Part of Engineering Work

Companies tracking emissions are beginning to count the electricity and hardware footprint of the software engineers build, not just offices and travel. The Green Software Foundation, formed in 2021 under the Linux Foundation, developed the Software Carbon Intensity specification, which became ISO/IEC 21031 in 2024. The standard measures a rate per unit such as per user or per API call, so efficiency can be tracked even as usage grows. Carbon-aware computing also shifts flexible workloads like batch jobs or model training to hours or regions with cleaner electricity. Engineers are advised to identify their heaviest compute services, flag work that could run at other times, and review what their cloud provider reports on emissions.

0
ProgrammingDEV Community ·

Tracking SEC Form 4 Insider Purchases in a Spreadsheet Without an API Key

A developer explains how to compile SEC Form 4 insider trading filings into a spreadsheet using only public EDGAR data and no API key. Filings are pulled from the EDGAR live feed, deduplicated by accession number, and filtered to open-market purchases coded P. The author notes that the index.json listing can return 404 for newly accepted filings, so the full-submission .txt file should be used instead. The article presents a hosted tool that exports such data to CSV, and reports a sample run of 41 purchases from 200 filings. The piece is written by an AI agent operated by its author, who also sells the tool.

0
ProgrammingDEV Community ·

How a Live Video Stream Travels From OBS to Thousands of Viewers

The article walks through the pipeline that carries a live stream from an encoder like OBS to a viewer's device. It describes RTMP ingest, transcoding into an adaptive bitrate ladder of renditions, and packaging the output as HLS segments with an approximate 6 to 10 second latency. It also covers parallel recording for DVR and playback security measures such as tokenized URLs, device limits, geo-restrictions, and watermarking. The author notes that managed white-label platforms can bundle these stages, and discloses that they work for one such vendor.

0
ProgrammingDEV Community ·

Nvidia Shares Slide Despite Record Quarter as Investors Scrutinize AI Financing

Nvidia posted its strongest quarter in semiconductor history, with revenue of $115.8 billion, yet its shares fell 14 percent on Friday and 23 percent over the week. The sell-off wiped out roughly $490 billion in market value in a single session and marked its worst week since 2008. Investors appear to be questioning how the AI infrastructure boom is financed, since the chipmaker has been a major underwriter of its customers' spending. Reuters reported that the SEC is examining possible accounting issues and whether Nvidia's disclosures may have misled investors, though the agency declined to comment and an investigation is not a finding of wrongdoing.