Need to Know: Denied by Default

Part of the Determesh series. What Every resource in Determesh is denied to every user unless a rule allows them. Rules compare attributes the company set on a user. A resource can also take the decision itself, through its own access check. Whatever decided, the answer is cached per user and resource, and either side can correct the cache when something changes. Why Roles are too coarse Most chat platforms with permissions stop at roles: admin, operator, user. A company with real data needs more than that. A level 3 employee in HR may read the policy documents but not the salary sheet. A contractor may see the holiday list until the contract ends. A customer may check their own transactions after verifying their email, and nothing else. ...

October 13, 2026 · 5 min · 1003 words · Sagar Nayak

FX: USD Pivot, Two-Layer Cache, Stale-While-Revalidate

Part of the Sanchayam series. Why FX Matters Sanchayam tracks assets in their native currency. An Indian equity is priced in INR. A US stock is priced in USD. Crypto may be in USD or USDT. A bank account might be in AED. The portfolio view needs to aggregate everything into one base currency (the user’s choice - INR by default). Every portfolio snapshot, every holdings page, every P&L calculation requires converting across currencies. FX rates are fetched from the same Twelve Data API used for price feeds. A naive approach - one API call per currency per request - would be both slow and expensive. ...

April 20, 2026 · 4 min · 771 words · Sagar Nayak

The Two-Layer Cache Architecture

Part of the MediaBridge series. Why Cache S3 at All S3 ListObjectsV2 is not free. Each call costs money, takes time, and returns at most 1,000 objects per page. A bucket with 10,000 files in a single prefix requires 10 paginated S3 calls just to render one folder. Do that on every page load and you burn money, slow the UI, and hit S3 rate limits under concurrent users. Presigned URL generation is also not free. It is CPU work on the server. A folder with 50 files requires 50 presigned PUT or GET URL generations per load if nothing is cached. ...

February 25, 2026 · 6 min · 1065 words · Sagar Nayak