BT San Technology

Knowledge

Technical guides with sample code we ran, its real output, and references.

  1. Illustration: a laptop showing a list of background jobs with running and done states, with a server rack and network cables behind
    Websites and web apps27 min readBackground jobs and queues: moving heavy work off the web app screenA background job queue on node:sqlite: leases that expire when a worker dies, idempotency keys, exponential backoff with jitter and a dead-letter table, with runnable TypeScript and real output (Thai text).
  2. Illustration: a monitor and a tablet showing live status tiles for machines, storage and cloud, beside a network switch with a factory behind
    Websites and web apps2 min readPolling, SSE and WebSocket: choosing how to update data on screenHow each method delivers updates, the load and complexity each brings, and how often the screen really needs to change.
  3. Illustration: a laptop showing a product page with a refresh icon and a shielded user profile, beside a network switch and a coiled LAN cable
    Websites and web apps2 min readWhat a cache is: a faster website without stale data or someone else's dataWhere caches sit, how long data may be reused, and why private pages must never be cached for everyone.
  4. Illustration: a monitor showing two separate panels, an office building and a warehouse, each with its own documents, above two folders of different colours
    Websites and web apps24 min readA web app for many companies: separating each organisation's data in a multi-tenant systemIsolating many organisations in one database: tenant_id, composite keys the database enforces, a repository that takes the tenant from the session, and cross-tenant tests, with runnable TypeScript, real output and PostgreSQL row-level security SQL (Thai text).
  5. Illustration: a finger tapping a slot on a schedule grid on a tablet, beside a laptop showing time slots with green dots
    Websites and web apps29 min readOnline booking for service businesses: designing time slots, capacity and cancellationsDefining slots and capacity, holding a slot while the customer confirms, and clear cancellation and rescheduling rules.
  6. Illustration: a tablet showing machine and tool icons beside a laptop with adjustment sliders and a finger pointing at the screen
    Websites and web apps27 min readA preliminary price estimator on the website: calculating so customers understand the conditionsA price estimator whose business rules live in one versioned file: integer satang, explicit rounding, VAT shown separately, a reason for every line and reproducible old quotes, with runnable TypeScript and real output (Thai text).
  7. Illustration: a hand holding a phone with a green-check payment confirmation, beside a laptop listing orders with check marks and a retry icon
    Websites and web apps28 min readConnecting payments to a web app: handling paid, duplicate payments and refundsA payment webhook that verifies an HMAC signature on the raw body, deduplicates by event id and never moves an order status backwards, with runnable TypeScript, real output and PostgreSQL SQL (Thai text).
  8. Illustration: a monitor showing spreadsheet file icons, an import arrow and a validation list with green checks and orange warnings, beside document trays
    Websites and web apps24 min readImporting Excel and CSV into a web app: checking data before saving and reporting errorsA CSV importer that runs a per-row dry run, reports errors by line and column, copes with BOM, Buddhist-era dates, leading zeros and duplicates, then imports all-or-nothing in one transaction, with runnable TypeScript and real output (Thai text).
  9. Illustration: a finger pointing at an orange-highlighted row in an event list on a laptop, with a network switch and blue cables behind
    Websites and web apps2 min readWebhooks that never arrive or arrive twice: designing retries and reconciliation between systemsAcknowledging quickly, ignoring duplicates by event ID, retrying failed deliveries, and a periodic check that both systems agree.
  10. Illustration: a monitor showing a change-history timeline of users with clock icons and arrows, beside a binder
    Websites and web apps27 min readAudit trail vs change history: knowing who changed what in a web appA trustworthy audit trail for a business web app: who changed what, written in the same transaction as the change, masked sensitive values, point-in-time reconstruction and hash-chain tamper detection, with runnable Node 24 code and real output (Thai text).
  11. Illustration: a laptop showing a web page beside a check panel with coloured dots, a hand writing a checklist on a clipboard, beside a zip case and a security key
    Websites and web apps24 min readXSS, SQL injection and CSRF: understanding web risks well enough to talk with developersThree web flaws side by side in a localhost-only demo: vulnerable and fixed handlers, runnable Node 24 code, real output and tests (Thai text).
  12. Illustration: a laptop listing signed-in devices, one checked and one revoked, and a hand plugging in a security key beside a phone
    Websites and web apps2 min readSessions and signing out: designing expiry, revocation and account recoveryHow long a session should last, ending sessions after password changes or on request, and a recovery flow that does not reveal accounts.

Add us on LINE

Scan with the LINE app on your phone

QR code to add LINE @Bankoos

LINE ID: @Bankoos

Open LINE on this computer