The starting point
Our e-invoicing platform, with one database per company, needed more capacity at a lower cost without interrupting its customers' invoicing.
The decision
Move to a VPS with 4 times the CPU, memory and disk, with an assessment, a plan, a cutover runbook, a restore rehearsal and a rollback plan, all in writing before touching production.
What we did
- New server with Docker, MariaDB and Caddy
- Database isolated from the internet, with key-only access
- Cloudflare as a WAF from day one
- Daily backups with 14-day retention
Results
- 2,377 tax documents and 13,308 files verified identical
- Validated with a real invoice accepted by SUNAT from the new server
- A log reusable as the runbook for the next migration
How quality was ensured
Source and target were compared on tables, tax documents, shipping guides, sequence numbers, users and files.
Technology
- Laravel
- Docker
- MariaDB
- Caddy
- Cloudflare