Dialog API
Dependencies
- foreman
- PostgreSQL >= 9.4.2
- ruby 2.3.1
Getting started
Install gems:
$ bundle installCopy default environment variables and configure in .env.local:
$ cp .env.default .env.local && $EDITOR .env.localMessages
AWS Firehose
Follow these instructions in order to create a Kinesis Stream persisting records to S3 and copying them in Redshift.
Concurrency
Thread safety is assumed.
These posts have been used as references:
- http://bryanrite.com/heroku-puma-redis-sidekiq-and-connection-limits/
- https://devcenter.heroku.com/articles/concurrency-and-database-connections
- https://devcenter.heroku.com/articles/deploying-rails-applications-with-the-puma-web-server
Puma
- Workers:
WEB_CONCURRENCY# Default: 2 - Threads:
MAX_THREADS# Default: 5
PostgreSQL
- Pool:
DB_POOL# Default: 10 (WEB_CONCURRENCY * MAX_THREADS)