TiDB is an open-source NewSQL database that supports Hybrid Transactional and Analytical Processing (HTAP) workloads. It is MySQL compatible and features horizontal scalability, strong consistency, and high availability.
I assumed using TiDB as a backend storage layer of Ruby on Rails application perhaps is a great way to manage storages into one place.
This post describes how to get started and how to use TiDB as backend of Ruby on Rails applications for developers.
Example source codes are available at rails-tidb in GitHub.