[1/5] We documented how we deploy our Broker service, including scripts that keep the service alive and backed up. If you are interested in deploying an instance yourself, feel free to check it out. Here are some highlights: github.com/bgpkit/bgpkit-…
[2/5] We use @freebsd as our main OS for the Postgres database and API hosting. It is very simple to create and start system services, and hard to make mistakes. /etc/rc.conf and /etc/rc.d are the only two places involved for configuring that.
[3/5] We keep two active backups: one daily and one weekly. The daily backup goes to our own data storage server, while the weekly backup goes to DigitalOcean Spaces. The backup is done using pg_dump command. The backups also serve as bootstrap data for docker installs.
[4/5] Apart from the main search API, we also use a materialized view to serve the most recent data for each collector. For better performance, we push the view to @Cloudflare KV and serve the content with a very simple Workers script. It is fast! broker-latest.bgpkit.workers.dev
[5/5] Finally, in case you missed it, the entire backend is open-source under MIT License. Follow us and @heymingwei for more things #BGP.