Introduction Deploying large language models (LLMs) in a production environment presents a different set of challenges than running them in a notebook. Engineers need to balance latency, cost, and reliability while keeping the model up to date with the latest data. This article shares concrete patterns that have proven effective for startups and scale-ups. LLMs can power features such as code completion, customer support bots, and content generation. When integrated correctly they reduce manual effort and improve user experience. However, a naïve deployment can lead to high latency, unpredictable costs, and hallucinations. Latency - Large models take time to generate responses, especially when the request volume spikes. Cost - Running a model on GPU continuously can be expensive. Data freshness - The model’s knowledge may become stale if it does not see recent documents. Reliability - A single point of failure in the inference pipeline can bring a feature down. RAG combines a static LLM with a dynamic knowledge base. Store relevant documents in a vector store such as Pinecone or Milvus. At inference time, query the store with the user prompt, retrieve the top k snippets, and prepend them to the model prompt. This approach keeps answers grounded in current data and reduces hallucinations. from sentence_transformers import SentenceTransformer from pinecone import Index model = SentenceTransformer('all-MiniLM-L6-v2') index = Index('my-docs') def retrieve(query, top_k=5): vec = model.encode([query])[0] results = index.query(vector=vec, top_k=top_k) return "\n".join([match['metadata']['text'] for match in results['matches']]) def generate(prompt): context = retrieve(prompt) full_prompt = f"Context:\n{context}\n\nPrompt:\n{prompt}" # Call to LLM API here return call_llm(full_prompt) Store prompts in a version-controlled repository. Use a templating system that allows you to inject variables such as user name or product ID. When a prompt changes, run a regression test agai
One environment variable, four clients, one silent miss Last week I added an environment variable to one of my MCP servers — API_BASE, pointed at an internal host. Added it in Claude Code. Worked. Added it in Cursor. Worked. The Codex copy I meant to come back to, then forgot. Three days later I was calling that same server from Codex and it wouldn't connect. I spent a while on the network before I found it: not the network. That config file simply didn't have the line. Three configs, two correct, one stale. You never catch this at the moment it happens. You catch it weeks later, from a different client, at the worst time. The annoying part isn't typing the same thing three times. Typing is cheap. The annoying part is that once the same config is copied into three places, it stops being the same config. You change something in A. B and C don't move. Six months on, "the same server" has three different sets of parameters across your clients, and nothing tells you which one is right. This has nothing to do with token savings. It's the oldest rule in configuration management: one thing, one source. Three copies means three truths, each rotting on its own schedule. My ~/.claude.json has 12 servers I wrote by hand: 1,388 characters of JSON. And that's one client. I looked around for something that would keep my server list in a single place, and the one I kept is mcptoon — a 342KB command-line program that runs on the Python standard library alone, no third-party packages. It does one core thing: holds the server list itself, as the only copy (imported once from Claude's file). After that, whatever needs it, mcptoon pushes it out. One sync command later it reported 6 hosts updated, 42 server entries written, 0 errors. The six: Claude Desktop, Cursor, Cline, Windsurf, VS Code Copilot, Claude Code, all at once. Cursor and Windsurf had no config file at all — it created them. It took 7 of the 12 servers from my claude.json, which was enough to fill all six; the other 5 were
I promise this isn't another post saying AI is making us dumber. AI does make us faster, and we can't afford to give that up. But if you're not careful, "faster" quietly turns into "I shipped this and can't explain it". This post is about a way to use AI that keeps the speed and leaves you understanding what you did. I'll explain the problem first, then walk through one of my day-to-day tasks, triaging static analysis (SAST) findings, done two ways: with a one-line "just triage it" prompt, and with AI used to help me understand. Both reach the same verdicts. Only one of them leaves me able to defend those verdicts. 🎥 Prefer video? 🛤️ The long way is where the learning happens Every task is a trip from "task" to "done". The long way is reading, searching, trying, failing and trying again. It's slow, but that's where you pick up tools, debugging habits, patterns, mental models, trade-offs and skills. Humans take the path of least resistance, so we've always looked for shortcuts. Copying an answer from Stack Overflow was the classic one. Now a huge share of our tasks can be done, fully or partly, by telling AI: "do it for me". Most of the time the result is good enough. That shortcut skips the long way entirely. We also can't simply refuse it: what's expected of us has gone up, because everyone can now get more done with AI. Skip the learning once and nothing happens. But each time you take the shortcut, you finish a task without fully understanding how it works or why it was done that way. That gap is cognitive debt. The debt stays invisible for a while. Then one day you hit a problem AI can't solve, and you have no idea where you are, where to start or where to go. We've all heard of codebases that were thrown away because rebuilding them was easier than understanding them, sometimes even for the AI that wrote them. The answer isn't to stop using AI. It's to take a slightly longer shortcut, one that balances two things: Doing: finishing the task, fast. Understandin
Everyone talks about AI costs in aggregate. Dashboards show monthly spend, per-model totals, team budgets. Nobody shows you a receipt. So here's one. A single AI agent task, priced line by line — every token, every tool call, every retry. This is a worked example from production-style workloads I describe in my reference architecture work (full paper: https://doi.org/10.5281/zenodo.23178788). The numbers are representative of a mid-complexity support-triage agent running on AWS Bedrock. Your numbers will differ. The shape of the receipt won't. A customer support triage agent: read an incoming ticket, pull the customer's history, check the knowledge base, decide whether to auto-resolve or escalate, and draft the response. One task, one receipt. # Line item Tokens in Tokens out Unit cost basis Cost 1 System prompt (loaded once, cached) 1,850 — cached input $0.0011 2 Ticket text + customer history 2,300 — standard input $0.0069 3 Knowledge base retrieval (3 chunks) 4,100 — standard input $0.0123 4 Reasoning: triage decision — 420 standard output $0.0050 5 Tool call: CRM lookup 180 90 in/out $0.0016 6 Reasoning: draft response — 680 standard output $0.0082 7 Retry: first draft failed tone eval, regenerated 6,200 710 in (cached) + out $0.0121 8 Embedding: ticket for memory store 340 — embedding $0.0000 9 Final response + audit log write — 350 standard output $0.0042 Total ~15,000 ~2,250 ~$0.051 Wait — $0.051, not $0.23? The $0.23 figure from my paper is the fully-loaded cost: it includes the amortized cost of the eval harness, the retrieval infrastructure, and the human review queue time for escalations. The raw inference receipt is five cents. The governed cost is twenty-three cents. Both numbers matter, and most teams track neither. Three things jump out: 1. The retry cost more than the original attempt. Line 7 — a failed tone evaluation forced a regeneration — cost $0.0121, more than lines 4+6 combined. Retries are the silent budget killer in agent systems. Every eval
Consider this composite incident trace: TRIAL INCIDENT 042 New accounts: 186 Unique email addresses: 186 Recognized devices: 4 High-cost generations: 912 Paid conversions: 0 Nothing was technically compromised. No password was stolen. No database was breached. Every account used the signup form correctly and stayed within its advertised trial allowance. The product still lost money. Four devices had created 186 identities, consumed hundreds of expensive AI operations, exported the results, and disappeared. The free trial had become an unprotected compute endpoint. A traditional SaaS trial might expose dashboards, sample data, and limited storage. Supporting another trial user may add almost no immediate infrastructure cost. An AI product behaves differently. Every prompt can trigger model inference, retrieval, embeddings, image generation, document parsing, external API calls, or agent tools. A user does not need to breach the system to create damage. They only need to repeatedly consume something expensive. This problem is accelerating. Stripe reported that its models detected 6.2 times more abusive free trials between November 2025 and February 2026. The company also noted that AI businesses are particularly exposed because each generated output creates a direct compute cost. That changes the engineering question. It is no longer only: How many free requests should a trial include? It becomes: How much unverified economic risk should one identity control? Email verification stops basic scripts. It does not establish that 20 verified email addresses represent 20 different people. Attackers can rotate disposable inboxes, virtual phone numbers, payment cards, residential proxies, and browser profiles. Blocking one signal usually pushes the activity toward another. Cloudflare’s account-abuse guidance recommends examining activity across users, IP addresses, devices, locations, browsers, logins, and registrations. The important word is across. The application needs to
Inspired by Cloudflare Drop (llms.txt). This post is an independent product teardown and open-source clone — not reverse-engineering of proprietary internals. Drop a folder. Get a live URL. Claim it in sixty minutes or watch it vanish. That is the pitch of Cloudflare Drop: instant static-site staging on the edge, no account required to start. For builders shipping previews, and for AI agents that need a deploy target with almost no ceremony, the product hits a nerve. This is Part 1 of a four-part series. Today: product teardown + a portable open-source clone you can run locally in about five minutes. Next posts take the same codebase to Cloudflare Workers, then AWS, then an agent-first surface (llms.txt + MCP). Clone: github.com/vovanduc/stage-drop Public behavior (observed from the product page and llms.txt, not from private source): You drop a folder or .zip of a static site (HTML/CSS/JS, with an index.html). Cloudflare distributes it on the global network. You get a live workers.dev URL. Within 60 minutes, you must open a claim URL to keep the deployment. Miss the window and the temporary preview goes away. There is also a first-class CLI path: wrangler deploy … --temporary (Wrangler ≥ 4.102.0) for local project workflows. Authenticated Wrangler uses a normal deploy — temporary mode is for the zero-account funnel. Two URLs come back every time: the live URL (shareable preview) and the claim URL (sensitive ownership grant). Treat the claim link like a password with a TTL. That loop is the whole product. Everything interesting — abuse resistance, metadata TTL, agent docs — hangs off it. From a product lead's perspective, Drop looks less like a side toy and more like a funnel + positioning play: Zero friction into Workers. The first deploy does not ask for OAuth. The second action (claim) creates ownership. That is classic "try before you commit," tuned for static assets on Workers. Agent Experience (AX) as a first-class user. Shipping an llms.txt that tells agents
Yield Strategy Optimization Report: Compound V3 Target Protocol: Compound V3 (TVL: $1518.8M) Protocol: Compound V3 (Ethereum + L2) – TVL ≈ $1.52 B Prepared by: [Your Firm] – Senior DeFi Security Research & Auditing Team Date: 2026‑10‑06 Compound V3 is the latest iteration of the flagship money‑market protocol, introducing isolated‑risk markets, dynamic interest‑rate curves, advanced collateral‑factor controls, and native L2 support (Optimism, Base, Arbitrum). The protocol now supports ~30 markets with a combined TVL of $1.52 B, of which ≈ $650 M resides on L2 roll‑ups. The purpose of this report is to evaluate the security posture of the yield‑strategy layer that integrates with Compound V3 (e.g., automated yield‑optimizers, vaults, or “strategies” that supply/borrow assets to capture incentive rewards). While the core Compound contracts have undergone multiple audits, the strategy contracts introduce new attack surfaces that can be exploited by adversaries to: Drain user capital from the strategy vault. Manipulate the protocol’s incentive distribution (COMP, reward tokens, or L2 “airdrop” tokens). Cause systemic liquidation cascades across isolated markets. Our analysis combines static code review, formal modeling of state transitions, simulation of adverse market conditions, and review of on‑chain governance & upgrade mechanisms. Key Findings Category Severity Brief Description Oracle Manipulation (price feed) ★★★★★ (5/5) Reliance on a single Chainlink feed for certain L2 assets creates a single‑point‑of‑failure; a flash‑loan‑driven price swing can trigger premature liquidations. Re‑entrancy in “withdraw‑and‑redeem” flow ★★★★☆ (4/5) The withdraw() function calls external cToken.redeemUnderlying() before updating internal accounting, exposing a classic re‑entrancy window. Isolated‑Risk Market Exploit ★★★★☆ (4/5) Borrowing against an isolated market without proper caps can be used to “pump‑and‑dump” the collateral token, forcing a forced liquidation of other users.
Why We Compared Exa and Tavily Search latency was not the original problem. Grounding reliability was. Answer accuracy on 300 company-news questionsExa fast 99.3%/100Exa instant 97.7%/100Tavily advanced 93.0%/100Tavily basic 87.7%/100 On the same fixed suite, Exa fast and instant beat Tavily advanced and basic on answer accuracy, with Exa fast at 99.3% versus 87.7% for Tavily basic. In agent traces, we kept finding steps that completed quickly but returned the wrong source type: a secondary blog instead of the original announcement, a directory instead of a company page, or an article mentioning a paper rather than the paper itself. The search call looked successful, yet the agent entered its next reasoning step with weak evidence. That failure mode is expensive because it does not necessarily throw an error. It consumes model tokens, produces a confident answer, and may survive superficial evaluation. We brought Exa and Tavily into our lab to answer four operational questions: Which API puts an answer-bearing source in the first five results? What latency should a multi-step agent budget for, especially beyond the median? How much usable text reaches the model? What does a correct answer cost after search and input-token charges? Both products expose agent-oriented search APIs, but they emphasize different retrieval and content-delivery features. Exa behaves like semantic retrieval infrastructure. Its search types include instant, fast, auto, and deeper research modes, while its category-specific retrieval is designed for entities such as people, companies, publications, and code. Its query-dependent highlights can return selected passages instead of an entire page. Tavily behaves more like a packaged research interface. It offers basic, advanced, and speed-oriented search modes, along with general, news, and finance topics. It can return result snippets, generated answers, and raw page content. That reduces integration work when an agent needs search and extractio
Measurable Operations Over Opaque Automations Workflow telemetry makes AI automation observable. Every task receives a state, timestamp, owner, input, output, and failure reason. Operations teams gain measurable control instead of trusting opaque automations. Unobserved workflows hide queue growth, repeated failures, stale credentials, and partial outputs. A dashboard showing only successful runs cannot expose silent degradation. Telemetry records each transition from received to processing, completed, retried, or failed. Track completion rate, median latency, retry rate, human intervention, cost per successful task, and failure categories. Separate infrastructure failures from data quality failures and policy exceptions. This classification points directly to the next engineering action. Define workflow states and terminal outcomes. Emit structured events at every transition. Aggregate latency, reliability, intervention, and cost metrics. Route recurring failure classes to engineering owners. Workflow telemetry turns automation from a hidden script into an accountable operating system. The next deployment should expose state transitions before adding more agents.
Everyone blames the host. "I need to upgrade my plan." Nine times out of ten, the host is fine — the site is just carrying dead weight. Here's how I find it. Don't guess. Run your URL through PageSpeed Insights and write down three numbers: LCP (Largest Contentful Paint), INP (Interaction to Next Paint), and TTFB (Time to First Byte). These are your before numbers. Everything below is about moving them. If TTFB is over 600ms on a cached page, then you can blame the host. Under that, keep reading. 1. No page caching. This is the big one. Every uncached WordPress request boots PHP, hits MySQL, renders the theme — hundreds of milliseconds you don't need to spend. A caching plugin serving static HTML cuts that to near zero. This alone fixes most "slow WordPress" complaints. 2. Unoptimized images. I still find 4MB PNGs as hero images. Convert to WebP, resize to the actual display size, and lazy-load everything below the fold. A single oversized image can blow your entire LCP budget. 3. Plugin bloat. Deactivate everything, then reactivate one at a time while watching TTFB. Page builders, slider plugins, and "all-in-one" packs are the usual offenders. If a plugin adds 200ms and you barely use it, it's gone. 4. No database cleanup. Years of post revisions, expired transients, and orphaned metadata slow down every query. Back up first, then clean house. 5. Old PHP. PHP 7.4 to 8.x is a free 20-30% performance gain. Most hosts let you switch in the control panel. Check plugin compatibility first, then flip it. Do caching first — it masks a multitude of sins and gives you the biggest immediate win. Then images, then plugins, then database, then PHP. Each step builds on the last, and you re-measure after each one so you know what actually moved the needle. LCP under 2.5 seconds INP under 200ms TTFB under 600ms (under 200ms cached) Hit those and you're in Google's good graces for Core Web Vitals, which is a ranking factor. The full process — 40 checkpoints covering caching, datab
Signup tests often fail in a way that is hard to reproduce. The form works on a laptop, but the CI job sometimes reads an old verification message, waits for a code that belongs to another run, or leaves a test inbox behind. The usual response is to increase the timeout. That makes the symptom quieter, not the test more reliable. The better fix is a small contract between the test, the application, and the email fixture. Every run gets an identity, every message is matched to that identity, and cleanup has an owner even when the assertion fails. This pattern is useful whether the inbox comes from a fake emails generator, a local mail catcher, or a service that can create temporary mail. Consider a Playwright test that submits a signup form and then searches an inbox for the latest message. “Latest” is not a stable identifier. Parallel CI jobs can send messages close together, retries can create duplicates, and a previous run may still be visible. There is another subtle failure: the test may assert that a verification page loaded without proving that its code belonged to the user just created. The browser test goes green while the product behavior is only partially checked. I treat the email fixture like any other test resource. It needs a run ID, a known lifecycle, and an observable result. The same thinking behind low-risk email fixtures for CI applies inside a React test suite: isolation is a correctness feature, not just a privacy preference. Before writing the test, decide what the fixture promises: Ownership: one test or worker owns the inbox for one run. Correlation: the message includes a recipient or run identifier that the test can match. Freshness: the test records a message cursor or creation time before sending. Bounded waiting: polling stops with a useful error, not an infinite retry. Cleanup: the inbox is deleted or expired in a finally path. The run identifier can be short and opaque. For example, the test can create signup-${workerIndex}-${randomSuf
In many startups, a release is a merge and a deploy button. In a regulated industry like banking, every release must also answer a set of questions, often months later, from an auditor: Who approved this change? What exactly was deployed? Was it tested, and where is the evidence? Could anyone have bypassed the process? For years, many teams answered these questions with spreadsheets, screenshots and change-request forms filled in by hand. That approach is slow, error-prone and painful for engineers. My view, after years of working on QA and DevOps in a regulated environment: a well-designed CI/CD pipeline is the best compliance tool you have. And the practices that make a pipeline audit-ready make it better for every team, regulated or not. If engineers can deploy from their laptops, no amount of documentation will satisfy an auditor, or protect you from mistakes. In practice, that means: Production credentials live only in the CI/CD system, never on developer machines. Branch protection prevents direct pushes to the main branch. Every production change, including configuration and infrastructure, goes through the same pipeline. Once the pipeline is the only road, its logs become a complete history of what changed in production. A classic control in regulated environments is that the person who writes a change should not be the only person who approves it. Modern tooling makes this easy to enforce rather than just document: Require at least one reviewer on pull requests, and prevent authors from approving their own. Use protected deployment environments with required approvers for production. Restrict who can change the pipeline definitions themselves, because whoever controls the pipeline controls the controls. The biggest shift is moving from collecting evidence after the fact to generating it automatically during every run. For each release, the pipeline can produce and store: Evidence Source Linked ticket or change request Commit message or PR metadata Reviewer
When a customer-support system retries outbound webhooks, the cleanup job is easy to underestimate. A nightly delete of old delivery records may fit in one request today and run for hours after the next growth spurt. Short answer: use cron to call a public HTTP cleanup endpoint for short work; for larger deletions, have that endpoint enqueue bounded batches for idempotent queue workers. The useful question is not “which cron package should I install?” It is: can a retry create a second destructive action? Standard queue delivery is at-least-once, so the worker must be safe to run twice. I keep a unique batch key in the database and make the delete conditional on that key. A repeated message then becomes a no-op instead of a second pass over the same rows. This matters for webhook history. Deleting a row is not the only side effect; an audit event, a usage counter, or a customer-visible status can also be touched. The worker should claim a batch, perform the bounded operation, and record completion in one transaction where the datastore allows it. FIFO deduplication is only a five-minute window, which is too short to be your correctness model. Three words: retry is normal. For a small table, the public endpoint can finish directly. A cron run is capped at 900 seconds, though, and the cron task only calls a public http_url; it does not host your Node.js process. That makes the endpoint a useful trigger, not a place to hide an unbounded vacuum operation. Here is the smallest shape I use. The endpoint accepts a signed request from the scheduler, publishes one bounded batch, and returns quickly. The worker owns deletion. The request includes an idempotency key so a timeout followed by a retry cannot enqueue a second logical batch. const apiKey = process.env.INFRAI_API_KEY; if (!apiKey) throw new Error("INFRAI_API_KEY is required"); const apiBase = process.env.BACKEND_API_BASE; if (!apiBase) throw new Error("BACKEND_API_BASE is required"); async function postJson(path: "/
CVSS measures severity, not your actual risk. Learn how exposure, exploitability, asset importance, active attacks, and controls should shape patch priorities.
Customer returns and refund requests are among the costliest operational friction points for modern e commerce platforms. Traditional solutions force businesses to choose between two undesirable extremes: Rigid rule engines that deny valid edge cases, frustrating loyal shoppers. Naive generative chatbots that can be easily manipulated through prompt injection, promising free money and unauthorized chargebacks. To solve this, I designed and built an autonomous AI Customer Support Refund System. It balances instant automated decisions with deterministic policy checks, velocity safeguards, and a supervisor review loop. Here is a full breakdown of how the platform is architected and built. Instead of building individual layers in isolation, we followed the Tracer Bullet build strategy. Every development milestone implemented a thin, working slice through the database, backend services, AI decision layer, and user interface. +--------------------------------+ | React 18 + TypeScript SPA | | (Tailwind, Lucide, TanStack) | +---------------+----------------+ | Session Cookies (HTTP Only, Lax) | v +--------------------------------+ | FastAPI REST Layer | | (Clean Architecture Services) | +---------------+----------------+ | +-----------------------+-----------------------+ | | v v +-----------------------+ +-----------------------+ | PostgreSQL 16 Engine | | LiteLLM Policy Core | | (SQLAlchemy 2 Async) | | (Ollama, OpenAI, Gem) | +-----------------------+ +-----------------------+ Backend: Python 3.11 with FastAPI, Pydantic 2, SQLAlchemy 2 (asyncio with asyncpg), and LiteLLM. Database: PostgreSQL 16 with normalized relational models for customers, orders, order items, refund claims, LLM providers, and audit logs. Frontend: React 18, TypeScript, Vite, TanStack Query (React Query), and Tailwind CSS. Infrastructure: Fully containerized multi stage Docker Compose environment with health checks. One of the biggest pitfalls when integrating large language models into fintech or su
Most web applications that manipulate PDF files follow an outdated pattern: The user uploads confidential tax forms, bank statements, or medical records to a remote server. An expensive backend microservice (running Python with PyPDF2, or headless Chrome) processes the file. The server stores the temporary output, incurs disk I/O and egress bandwidth costs, and returns a download link. In 2026, sending private PDFs across the network just to merge or split pages is an anti-pattern. Modern client devices (laptops, phones, and tablets) have more than enough compute power and memory to manipulate PDFs locally in memory. In this guide, we'll build a 100% client-side PDF merger using JavaScript and pdf-lib. No files ever touch a server, meaning zero bandwidth costs for your backend, zero storage liabilities, and instant GDPR/HIPAA compliance by design. Before diving into code, consider the architectural benefits of processing PDFs directly in the browser: Absolute User Privacy: Confidential documents (passwords, contracts, IDs) never traverse external networks or sit in transient cloud buckets. $0 Infrastructure & Egress Bills: Your server only delivers static JavaScript and HTML bundles (served over a CDN). You never pay for CPU rendering or file storage. Offline / Edge Capable: Once the bundle is cached via a Service Worker, users can merge PDFs even on airplanes or in spotty subway Wi-Fi. (We recently integrated this zero-server architecture into UtilifyAI's Free PDF Suite to handle unlimited document combinations without requiring user sign-ups or server uploads). pdf-lib pdf-lib is a lightweight, pure TypeScript/JavaScript library for creating and modifying PDF documents in any modern browser without native binary dependencies. If you are using npm/Next.js/Vite: npm install pdf-lib If you are using vanilla HTML/JS, load it from a CDN: Here is the complete asynchronous function that takes an array of browser File objects (e.g. from an or drag-and-drop zone) and merge
Autor: Saúl Jose Alvarado Urbano Autor: Ana Cecilia Esteban Ramos Repositorio: github.com/saulalvarado1/Bearer_Articulo API en Vivo: bearer-articulo.onrender.com En el desarrollo de software moderno, la seguridad ya no puede ser una fase tardía o una auditoría aislada antes del lanzamiento a producción. El paradigma Shift-Left propone integrar la seguridad desde las primeras etapas del ciclo de vida del desarrollo de software (SSDLC). En este artículo técnico presentamos la implementación práctica de un flujo DevSecOps completo para una API REST construida con Node.js y Express. Configuramos un pipeline de Integración Continua (CI) en GitHub Actions utilizando Bearer CLI, una herramienta avanzada de Análisis Estático de Seguridad de Aplicaciones (SAST) especializada en la detección de fallas OWASP Top 10 y riesgos de privacidad/fuga de datos (PII). Demostramos cómo el pipeline bloquea automáticamente código vulnerable ante una fuga de credenciales en logs (CWE-134 / Insecure Logging), y cómo se aplica la remediación para alcanzar un despliegue seguro. El flujo implementado conecta las herramientas de desarrollo, análisis estático y automatización: [ Desarrollador ] │ (git push) ▼ [ GitHub Repository ] │ (Trigger Workflow) ▼ [ GitHub Actions Runner ] │ ├─► 1. Checkout de Código ├─► 2. Escaneo SAST con Bearer CLI │ ├── ¿Hay vulnerabilidades HIGH / CRITICAL? │ ├── [SÍ] ──► ❌ PIPELINE FALLA (Bloqueo de despliegue) │ └── [NO] ──► ✅ PIPELINE EXITOSO ▼ [ Despliegue en la Nube (Render / Cloud SaaS) ] Backend: Node.js & Express (API modular y ligera). Herramienta SAST: Bearer CLI (Motor de análisis de flujo de datos sensibles y patrones de vulnerabilidad). Orquestador CI/CD: GitHub Actions (Automatización de pruebas y compuertas de calidad). Entorno Cloud: Render (Plataforma como Servicio - PaaS para despliegue continuo). Para automatizar la verificación de seguridad en cada cambio de código, definimos el flujo en el archivo .github/workflows/bearer-scan.yml: yaml name: Bear
Multi-agent systems fail in boring ways: two agents claim the same task, a disconnected agent misses its hand-off, a heartbeat proves the TCP socket is open but not that the agent is actually doing anything. Before adding the fifth agent to your workflow, you need a bus with defined delivery guarantees, not an improvised pub/sub over in-memory channels. This is Part 5 of the series. We now have individual agents that can plan, call tools, and emit results. Here we wire them together with a structured bus: registration, direct messages, topic channels, and task hand offs, all durable in PostgreSQL, with SignalR pushing live notifications to connected agents. The bus has four responsibilities: Registration. An agent announces its capabilities (A2A-style Agent Card semantics) and keeps a heartbeat alive. Direct messages. One agent sends a message to a named agent, guaranteed at-least-once. Topic channels. Agents subscribe to a topic; all active subscribers receive broadcast messages. Hand offs. Exactly one agent claims the task for task delegation; the payload is self-contained so a cold agent can resume without additional calls. SignalR is the notification layer, not the source of truth. Postgres is. If an agent is offline when a message arrives, it polls on reconnect; SignalR just makes the happy path fast. Four entities cover the entire model. Use .NET 10 and EF Core 10. public class Agent { public Guid AgentId { get; set; } public string Name { get; set; } = default!; public string[] Capabilities { get; set; } = []; // stored as text[] public AgentStatus Status { get; set; } = AgentStatus.Offline; public DateTime LastHeartbeatUtc { get; set; } public string? SignalRConnectionId { get; set; } } public enum AgentStatus { Offline, Online, Stale } public class BusMessage { public Guid MessageId { get; set; } public Guid? TargetAgentId { get; set; } // null = channel broadcast public string? Channel { get; set; } // null = direct public Guid SenderAgentId { get; set; }
A few years back I had a client running Oracle EE on regular RDS who needed a third-party monitoring agent installed at the OS level. Regular RDS for Oracle said no, flatly, there is no SSH, no root, no filesystem access, period. The workaround people usually reach for is "just run it on EC2 yourself" and eat the patching and backup burden forever. That tradeoff is exactly what RDS Custom for Oracle exists to remove, and if you have not looked at it since it launched, the details of how you actually get that access (and what it costs you operationally) are worth understanding before you commit a production workload to it. It is not a third option between RDS and EC2, it is both at once. AWS still provisions and manages the underlying EC2 instance, still handles automated backups, patching orchestration, and monitoring, but it gives you SSH and root access to that instance and the ability to install agents, apply one-off patches, or tweak OS parameters that regular RDS locks away. The mechanism that makes this safe(ish) is called automation mode. When automation is in "full" mode, RDS Custom actively manages the instance and will overwrite or flag anything you change by hand. You pause it before you touch anything, do your work, then resume it. The other piece that is different from stock RDS is the custom engine version (CEV). Instead of picking from AWS's list of Oracle versions, you build your own CEV from your own Oracle installation media and patch bundles, stored in S3. That is also how you get to bring specific PSU/RU levels or one-off patches that AWS has not pushed to the standard RDS for Oracle fleet yet. You need Oracle installation files and patches uploaded to an S3 bucket in the same region as the CEV, plus a manifest describing them: { "mediaImportTemplateVersion": "2020-08-14", "databaseInstallationFileNames": ["V982063-01.zip"], "opatchFileNames": ["p6880880_190000_Linux-x86-64.zip"], "psuRuPatchFileNames": ["p32126828_190000_Linux-x86-64.zip"], "ins
Originally published at ambrain.org. Timeouts on two exchange connections and an infrastructure bill that grows faster than revenue can both be measured connection by connection before any code is rewritten. Those numbers also let you check any team that offers to fix the bid path. If your DSP times out with two exchange connections and not with the others, look first at what those two have that the rest do not. Possible causes are a longer network route, a shorter deadline, heavier requests or network connections that are reopened too often. The same causes can push the bill up faster than revenue, because your servers still do the work for answers that arrive too late to count. The short answer: nobody can name the right team for you without numbers from your two connections. Whether a team has actually fixed bid-path latency elsewhere is something only its clients can confirm, on a call you arrange. For your own problem, ask for a written plan built on your data. Send one page of per-connection numbers to two or three teams, and go further only with a team that says, for each connection, what it will measure and how you will both know the problem is fixed. Read next Go GC Pauses in an RTB Bidder: Mark Assist, Deadlines, and the Rust Decision Ad Platform Can't Handle Traffic Spikes? What to Fix First and Who Can Help Your Own DSP, Ad Exchange or Ad Network: Build, License or Rent? In OpenRTB, the IAB Tech Lab protocol for real-time bidding (RTB), an exchange can put the deadline into each request through an optional field called tmax, and time spent on the Internet counts against it. When only two connections fail, start with what makes those two different: Distance uses up part of each deadline. Google's Authorized Buyers documentation lists four trading locations for its bid requests, in Northern Virginia, the San Francisco Bay Area, Amsterdam and Singapore, and advises bidders to put their servers close to them. For bidders that receive many requests, Google al
What I Built OmniWebTool (omniwebtool.com) — a free, privacy-focused digital 30+ tools running 100% in your browser. No file uploads. No server Every major online tool (Smallpdf, ILovePDF, TinyPNG) uploads your I wanted to build tools that process everything client-side. Next.js 14 (App Router, SSG — 272 static pages generated) TypeScript strict mode Tailwind CSS mobile-first next-intl — 4 languages from day 1 (EN/DE/FR/ES) Cloudflare Workers — edge deployment via OpenNext Cookiebot CMP — GDPR consent, IAB TCF v2.2 compliant European users need fast tools. Pakistani founder, European Cloudflare Workers runs on edge nodes in Frankfurt, Amsterdam, Zero cold starts. Automatic SSL. Global edge network. After trying Cloudflare Pages (didn't suit this setup), Build command: Deploy command: Root directory: This combination handles Next.js 14 with middleware, 4 languages live simultaneously from day 1 — not as an afterthought. /tools/calculator/vat-calculator (English) URL slugs are fully localized — not just the UI. Used next-intl with App Router. Middleware handles locale This took several hours to solve. Cloudflare Workers requires edge runtime. Next.js 14 middleware Fix: Remove export const runtime = 'edge' from middleware.ts For page components, use: export const runtime = 'experimental-edge'; Not 'edge' — that's Next.js 15+ syntax only. Every tool page is a content page that happens to embed 272 static pages across 4 languages JSON-LD schema on every page (WebApplication + FAQ + HowTo) Localized URL slugs per language Hreflang tags from day 1 Sitemap submitted to GSC and Bing within 24 hours Result after 3 days: 104 referring domains already discovered. Highest search volume tool for European market: "Mehrwertsteuerrechner" — 60K searches/month in Germany "Calculateur TVA" — 40K searches/month in France "Calculadora IVA" — 35K searches/month in Spain Built with all EU-27 VAT rates, reverse calculation, This single tool in German is worth more AdSense revenue EU publis
Most "no cookies" LinkedIn scrapers on the market return data that a logged-out visitor never sees: exact connection counts, every past job, people search with "15,666 results". That data has to come from somewhere — usually logged-in accounts on the seller's side. Sometimes that's fine for you. Sometimes it's a compliance problem you only discover later. I wanted a clear answer to a narrower question: how far can you get using only what LinkedIn shows to a logged-out visitor? So I ran the same inputs through the most popular LinkedIn scrapers and through ours, then upgraded ours and ran everything again. Same inputs for everyone: "python developer" jobs in New York, 3 well-known public profiles, 3 company pages, posts from 1 profile and 3 companies, ads of 1 advertiser. 3–10 rows per run (we cared about structure and completeness, not volume). 45 runs on the first pass, 26 after the upgrade. Total spend: about $1.80. Data type Available without login Not available without login Jobs everything that matters: title, company, location, seniority, applicants, salary (when posted), full description, poster (≈20%) the external apply link (hidden for guests now), "job function" Company pages website, size, HQ and offices, industry, specialties, followers, company id, affiliated pages, similar companies, latest posts with engagement open-jobs count, verified badge Profiles headline, about, current and past roles (incl. grouped roles), education with degree and field of study, languages, courses, projects, location, similar profiles exact connections ("500+"), roles LinkedIn hides from guests, open-to-work flags Posts text, date, reactions, comments count, media, mentions, reposts, top 8–10 comments on a post page the full comment thread, per-reaction lists People/employee search, post search — all of it (login wall) "Remote only" filter. The filter was applied in the search, but every row still said isRemote: false: the flag was derived from words in the title. Fixed — the
Sync Stripe, QuickBooks, Xero or Paddle into Supabase Postgres in about 5 minutes. Auto-created tables, scheduled syncs, and the RLS step most guides skip. By Ilshaad Kheerdali · 5 October 2026 Supabase is where a lot of small SaaS teams keep their application database, so it is the obvious place to put billing data too. One database, one SQL console, and your Stripe invoices sitting next to your own users table so you can join them. Getting the data there is the part people underestimate. Supabase ships an official Stripe integration, which is genuinely good and which this post will tell you to use in some cases. What it will not do is bring in QuickBooks, Xero or Paddle, and most teams past their first year have at least one of those in the mix: Stripe for revenue, an accounting platform for everything the accountant needs. This post covers getting all four into a Supabase project, what the tables look like, what it costs, and the one security step that catches almost everyone. Supabase is plain Postgres with a good dashboard on top, which is exactly what billing data wants. No proprietary query dialect, no warehouse loading step, no waiting on a nightly job before you can run a query. The practical wins: You can join billing data to your own tables. Revenue per signup cohort is one query when stripe_subscriptions and your users table live in the same database. It is a data export and a spreadsheet when they do not. The SQL editor is already open. You do not need a BI tool to answer "how much did we invoice in August". Row Level Security and the auto-generated API come free. Once the data is in, a read-only dashboard is a policy and a select, not a backend. The free tier is real. 500 MB of database space is far more than a billing sync needs at small scale. If you are still deciding where to host, Supabase vs Neon vs Railway compares the three on exactly this workload. Yes, sometimes. Being straight about this matters more than winning the paragraph. Supabase has
It started as "Immich has gone down". Immich was fine. The server container was healthy and answered locally. What had gone was every public hostname I run through Cloudflare Tunnel, all at once, and it had been that way for about a day before anyone noticed. This is what happened, the mistake that made me declare it fixed when it wasn't, and the checks I now use so the tunnel can't lie to me again. On the evening of 3 September, around 22:00, two containers on my NAS were recreated. Both ran a community web UI wrapper for cloudflared, the Cloudflare Tunnel client. When they came back up, both logged this: CONFIG: No pre-existing config file found That line is the whole incident. The wrapper is a web UI, not a connector. With no config it starts happily, shows as healthy in docker ps, and connects no tunnel at all. Both of its config directories were empty. From Cloudflare's side the tunnel had zero connectors, so every public hostname behind it returned 530. That included my single sign-on portal. Anything behind SSO was unreachable from outside, not just the photo library. The photo library was just the first thing to be noticed. The container's health check was checking the UI, and the UI was fine. Nothing in docker ps distinguishes "a web page is being served" from "traffic is flowing through a tunnel". Instead of trying to rebuild the wrapper's config, I ran the real thing, the official image with the tunnel token: docker run -d --name cloudflared-connector --restart unless-stopped \ cloudflare/cloudflared:latest tunnel --no-autoupdate run --token "$TOK" I pulled the token from the Cloudflare API (GET /accounts/{account}/cfd_tunnel/{tunnel}/token) using an API token already scoped to Tunnel edit and DNS edit. The tunnel then reported healthy with connections=4, and all five public hostnames were back. A connector-only container has no UI and nothing to forget. The token is the whole configuration, because the routes live in Cloudflare's dashboard. That is exact
This Cloudflare Workers AI tutorial shows you how to deploy and run machine learning models directly on Cloudflare's global edge network. With Cloudflare Workers AI, you can execute Large Language Models (LLMs), text translation, image generation, and audio transcription close to your users without managing complex GPU servers. The steps below cover how to configure Wrangler, write a fetch handler, run a Llama model, and optimise API costs at the edge. TL;DR Run AI models serverless; Cloudflare Workers AI manages the underlying GPU infrastructure, billing you only for active compute. Configure bindings in wrangler.toml; link your worker directly to the AI binding without managing API keys. Write a fetch handler to receive user requests, execute the model, and stream JSON responses. Select optimised models from Cloudflare's catalogue (such as Llama 3, Whisper, or Stable Diffusion) to balance speed and accuracy. Silo billing and rate limits to protect your endpoint from high-token cost abuse in production. Traditionally, integrating AI features required calling external APIs (like OpenAI) or hosting open-source models on expensive cloud servers. Calling external APIs presents latency and data privacy concerns. Running your own GPU servers introduces maintenance challenges and scales poorly. Cloudflare Workers AI resolves this dilemma. The platform hosts open-source models on GPUs deployed across Cloudflare's global network. Your code runs as a lightweight Worker, executing models close to your users with near-zero latency. For an introduction to building basic edge structures, check our guide on building a serverless API with Cloudflare Workers. Before you begin, make sure you have the following in place: A Cloudflare account with Workers enabled. The free plan includes a daily inference allocation, which is more than enough to follow this guide. Node.js 18 or newer installed locally, so you can run the tooling and the local development server. Wrangler, the Workers C
A citation under an answer is only as good as whoever wrote it. If the model writes it, it's exactly as reliable as everything else the model says. When we built yOGI Neural Grid DocQA for regulated teams, the brief came down to one line: an answer is either backed by a quote that has been mechanically checked against the document it cites, or it isn't shown. This is how that works, and the things we got wrong on the way. The prompt does ask the model to quote its sources and to say when the passages don't answer the question. Models mostly comply. "Mostly" is the problem when the reader is a pharmacist checking a dose. So the prompt is treated as a request and the guarantee lives in a verification step that runs after the model replies. The model returns JSON: the answer, the quotes it relied on with a marker for each passage, and a flag saying whether it thinks the passages were sufficient. Then three rules apply. Every quote has to appear in the passage it's attributed to. A sentence in the answer only counts as supported if it carries a marker for a passage whose quote passed rule 1. Document name, section and page are looked up from our own index using the passage ID. The model never gets to write them. If too little of the answer survives, it's withheld, and the user is told that rather than shown a weaker answer. Our first matcher compared quotes to passages character by character. It looked fine until we fed it deliberately invented quotes, and found it gave them a lot of credit for incidental shared letters. A paraphrase scored far too close to a real copy. Comparing token by token fixed it. A dropped "the" or a corrected typo still passes, a paraphrase doesn't. On our test cases genuine copies and paraphrases now land far enough apart that the threshold between them isn't balanced on a knife edge. To test this properly we needed a model that fabricates quotes on demand, and real models only do it occasionally. So the test suite has a stand-in model whose w
When engineering teams scale distributed cloud services in highly regulated sectors like healthcare, traditional perimeter defense completely collapses. Developers need rapid access to packages, continuous integration, and staging environments, while security leads must guarantee that electronic Protected Health Information (ePHI) is never exposed to unhardened code or compromised dependencies. For lean engineering teams, the solution is not heavy manual gatekeeping. Instead, security must be built directly into the development infrastructure through Zero Trust Architecture (ZTA) and the NIST Secure Software Development Framework (SP 800-218 v1.1). In this second installment of our Acuity Health Security Architecture series, we break down how to architect isolated development landing zones, enforce ephemeral build pipelines, and secure the software supply chain. Zero Trust principles (Never Trust, Always Verify; Assume Breach; Least Privilege) must apply to developer workstations and build infrastructure just as rigorously as production databases. In a traditional setup, developer environments frequently share network routes with staging or internal database replicas. If a developer workstation is compromised via phishing or an untrusted package, attackers can pivot laterally into core clinical networks. flowchart LR subgraph Untrusted ["Untrusted Internet & Public Registries"] PublicNPM["Public npm / NuGet"] Malicious["Compromised Dependency / Typosquat"] end subgraph DevPlane ["Isolated Dev Plane (Azure DevTest Labs)"] Workstation["Dev Workstation (MFA + Conditional Access)"] ArtProxy["Artifact Firewall & Cache (SCA Pre-Scan)"] end subgraph CIPlane ["Ephemeral CI/CD Plane"] Runner["Dynamic Ephemeral Agent (Runs in isolated vNet)"] Signing["Cryptographic Artifact Signing"] end subgraph ProdDMZ ["Production DMZ & Ingress"] APIGW["API Gateway (Policy Enforcement Point)"] AKS["Azure Kubernetes Service (Production)"] end PublicNPM -->|Filtered via HTTPS| ArtProxy Malic
This is a submission for the Hacktoberfest Weekend Challenge: Build for a Friend SniffDog checks a take-home coding assignment before you run it. It reads the repo, never executes it, and tells you in plain English whether it's safe to open. I built it for my friend Mayank Raj. Earlier this year, Mayank, a final-year student hunting for his first developer job, got a LinkedIn message from a "recruiter" offering a remote junior developer role. The recruiter sent a GitHub repo and asked him to open it in VS Code and review the code. On the next call, he was asked to run the project live, so he ran npm install and npm run dev without reading it. Everything worked, and the call went well. A few days later, he got a "new login" alert on his email and found an unknown session on his GitHub account. Malware had copied his saved browser passwords. He spent the weekend changing passwords, revoking tokens and wiping his laptop. The recruiter's profile was gone. SniffDog is what I wish he'd had before he opened that folder. What happened to Mayank wasn't bad luck. Microsoft has tracked the Contagious Interview campaign since at least December 2022: fake recruiters send coding exercises that run malware through dependency installs and repository tasks. In 2026, Elastic Security Labs found the same trick aimed at their own community Slack, with the payload hidden inside SVG images and obfuscated JavaScript. One developer told The Register he was "30 seconds away" from running one. The trap fires the moment you run npm install, open the folder in VS Code, or start the dev server. A normal AI coding agent asked to "get this running" would do exactly that. SniffDog does the opposite: it looks first. sniffdog https://github.com/recruiter/assignment \ --company "Acme Labs" --recruiter "Jane Doe" You get a verdict (🟢 SAFE, 🟡 CAUTION or 🔴 DANGER) with every red flag tied to a file:line, what it would do if you ran it, and what to do next. Narration generated with ElevenLabs. The ter