Architecture

heroku architecture

API and App Server

The API utilizes a combination of open source technology and services to provide a speedy REST API for wide variety of potential client applications. On top of our postgres database, sits our ORM wrapper in Bookshelf, and API routes are exposed with Express. All protected endpoints will verified against our redis database to ensure the user is properly authenticated and has access to correct data/fuctions.

For simplicity the App is served from the same server as the API. If the application grows, it may make sense to split these in two distinct servers to ensure higher level of performance.

Salesforce UI

If Heroku Connect is configured, answers to user questions will be pushed automatically into the Salesforce instance.