SShortSingh.
Back to feed

Dev builds two-sided AI skills marketplace on a single DynamoDB table

0
·1 views

A developer built Skill Exchange, a marketplace for reusable AI skills, using a single-table DynamoDB design to handle sellers, buyers, reviews, and a leaderboard. The key lesson was to define all read access patterns before designing the schema, since DynamoDB lacks joins and restricts queries to a single partition. Global Secondary Indexes (GSIs) were designed to serve multiple access patterns each, with one index powering both the moderation queue and the live marketplace by using a status-encoded partition key. Approving a skill updates a single attribute, atomically moving the item between index partitions without needing separate status flags or scans. The approach also addressed double-payment risks by encoding purchase uniqueness directly into the primary key structure.

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 ·

How Token Counts Can Expose Silent Failures in LLM Agents Returning HTTP 200

AI agents can return a successful HTTP 200 status with no errors in logs, yet produce no usable output — a phenomenon known as a silent failure. This occurs when a model triggers a refusal policy, generates whitespace, or successfully describes a failed tool call instead of returning expected data. Standard observability tools typically monitor HTTP status codes and miss these output-level failures entirely. Developers can detect such failures by cross-referencing output token counts with actual response content length, since a near-zero or mismatched token count signals something went wrong after the API call succeeded. A simple heuristic function comparing token spend against response content can flag these silent failures before they corrupt downstream pipelines or silently skip critical actions.

0
ProgrammingDEV Community ·

Developer Uses Claude AI to Cut Smart Contract Coding and Review Time

A software engineer with 20 years of experience across banking, blockchain, and digital forensics has detailed how he integrates Claude AI into his daily development workflow. He uses the AI tool as a pair programmer to generate boilerplate Rust code for Soroban smart contracts on the Stellar blockchain, reducing scaffolding work from a full day to roughly two hours. The engineer also employs Claude for adversarial security reviews, where it reportedly identified an integer overflow vulnerability in a reward-distribution loop that static analysis tools had missed. He applies strict prompt constraints — such as banning unwrap() calls — to ensure generated code meets production standards, which he says cut initial review cycles by about 40% across his last three projects. Additionally, he uses Claude to produce audience-tailored documentation, generating both business-facing and technical write-ups from a single code source.

0
ProgrammingDEV Community ·

LoRA-Based Preference Tuning Optimizes Style Over Reasoning, Researchers Warn

A technical analysis published on DEV Community argues that using low-rank adapters (LoRA) for preference optimization methods like DPO systematically biases language models toward superficial stylistic changes rather than genuine reasoning improvements. Because the low-rank constraint limits the update to a narrow subspace, the optimizer defaults to the cheapest signal separating good from bad outputs — typically tone, formatting, and hedging phrases. Full-rank fine-tuning can spread gradient signals across more independent directions, enabling deeper reasoning changes, but it remains computationally expensive and is rarely used in practice. The analysis warns that distilling from a LoRA-DPO model compounds the problem by permanently encoding these shortcuts into student models. The proposed remedy is not collecting more data but reconsidering how rank budget is allocated across the model's layers during preference tuning.

0
ProgrammingDEV Community ·

Smartphone AI Pentesting Agent Can Flag Subdomain Takeover Risks Using WHOIS API

A local AI pentesting tool called Nightcrawler, designed to run entirely on a smartphone without cloud resources, has sparked interest in the cybersecurity community for its pocket-sized offensive-security capabilities. However, phone-based large language models lack the computing power to run full subdomain enumeration and DNS resolution pipelines independently. A proposed solution involves routing reconnaissance tasks to a lightweight backend API, specifically a Domain WHOIS API that bundles RDAP data, DNS records, SSL metadata, subdomain discovery, and takeover-risk scoring into a single JSON response. Subdomain takeover — where attackers claim dangling DNS records pointing to defunct services like GitHub Pages or Heroku — is considered a high-impact, low-complexity vulnerability commonly targeted in bug bounty programs. By offloading the heavy data gathering to the API, the on-device LLM only needs to reason over structured results and surface actionable findings to the user.