Data, Storage & Services
Modern digital services require robust, modular storage and integration patterns. Krewire decouples data backends from business logic using driver-agnostic abstractions:
- Pluggable Multi-Driver Architecture: Switch between embedded, local, and distributed engines without changing application code.
- Atomic Reliability: Virtual filesystems and atomic writers ensure operations survive unexpected process termination or power loss.
- Localization First: Native support for Indonesian banking infrastructure (BCA, Mandiri, BRI, BNI) and national QRIS payments.
What is in this Chapter?
Fluent query builder and multi-driver database layer supporting SQLite, MySQL, PostgreSQL, MongoDB, and Elasticsearch with automated migrations.
Unified object storage interface with swappable drivers for in-memory testing, local disk volumes, and S3-compatible cloud storage (MinIO, AWS, Cloudflare R2).
Isolated, testable virtual filesystem abstractions (io/fs, memfs) and crash-safe atomic file writing primitives.
High-speed in-memory LRU cache and distributed Redis cache client with TTL expiration, atomic invalidation, and tag-based grouping.
Multi-driver transactional email dispatcher with built-in template rendering, attachment support, and integrations for SMTP, Resend, SendGrid, and Postmark.
E-commerce ordering primitives, shopping cart workflows, and native Indonesian payment gateways: Midtrans, QRIS, Virtual Accounts, and e-wallets.