Workings of Horizon
Horizon is an open-source platform for building real-time, scalable web/mobile apps. It is built on top of RethinkDB, and allows the developer to get started with building modern, real-time apps without writing any backend code.
Horizon is assembled with three major components:
Horizon server: A middleware server written on Node.js that works on RethinkDB and exposes simple API/functions to front-end applications
Horizon client: A JavaScript client library that provides the front-end developer with access to RethinkDB with API/functions
Horizon CLI: A command line tool that helps you in bootstrapping, development, and deployment
These three components work together to provide the front-end developer with a ready-made backend server.
Horizon client library provides functions such as for CRUD operations and can be directly called, which in turns asks the Horizon server to deal with the RethinkDB database. Please note that any API call from UI won't directly go to the database...