BT San Technology

Knowledge

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

  1. Illustration: a tablet showing a schedule with two time-zone clocks, a hand holding a paper calendar, a Thai flag and a desk clock
    Websites and web apps2 min readThai dates, Buddhist and Gregorian years and time zones: designing time data in a web app without driftStore one standard time, display the year and zone the reader expects, and test dates around midnight and year boundaries.
  2. Illustration: two people sorting cards with person, document and clock icons beside a laptop showing linked data tables
    Websites and web apps2 min readCRUD and data relationships: designing a database from the business workCreate, read, update and delete for each business record, how records relate, and rules the database should enforce itself.
  3. Illustration: a tablet showing stacked document versions with an approval check on the front one, beside a clipboard with coloured tabs
    Websites and web apps22 min readDocument systems in a web app: managing versions, drafts and approved copiesA document lifecycle (draft, review, approved, rejected) where approved versions are immutable, only one is current, concurrent edits are detected and requesters cannot approve their own work, built with SQLite triggers in Node 24 (Thai text).
  4. Illustration: a monitor with two panels side by side, one person gesturing at it and another taking notes on a tablet
    Websites and web apps2 min readREST vs GraphQL: choosing an API style from the work and the team that maintains itHow each style asks for and returns data, where each fits, and the caching, security and tooling questions to settle before choosing.
  5. Illustration: a laptop showing a long list with page controls at the bottom, beside a stack of paper sheets
    Websites and web apps2 min readOffset vs cursor pagination: showing long lists without confusing peopleHow each method picks the next page, why rows can repeat or go missing while data changes, and which one suits which list.
  6. Illustration: two people tapping the same time slot on their own tablets while a laptop between them shows one confirmed booking
    Websites and web apps24 min readTwo people book the same slot at once: understanding transactions and preventing data conflictsReproduce two requests seeing the same free slot and both booking it, then fix it three ways: a UNIQUE constraint, a locking transaction and a conditional UPDATE, with runnable Node 24 code, real output and reference SQL for PostgreSQL and MySQL (Thai text).
  7. 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).
  8. 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.
  9. 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.
  10. 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).
  11. 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.
  12. 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).

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