A playground repo to test and learn about how to create a microservices infrastructure using hapi, mongodb, seneca, chairo with docker and sharded database
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
database
services
.gitignore
LICENSE
README.md

README.md

hapi-microservices-hapi-mongodb-sharded-seneca-docker

A playground repo to test and learn about how to create a microservices infrastructure using hapi, mongodb, seneca, hapi-seneca-plugin with docker and sharded database

Architecture

For now this is what this project is actually able to do.

+---------------------------------+ Port : 27017
| MONGODB DATABASE | Pcol : mongodb://
+------------+-------------------+
        ^
         |
         |
+-----------------------------------+
|         |               |
| +---------+---------------------+ |
| | Database abstraction| |
| | layer                 | |
| +-----------^-------------------+ |
|          |                |
| +----------+--------------------+ |
| | Models(users) | |
| +---------^----------+ |
|        |         |
|        |         |
|        +         | Port : 11100
| Database-router | Pcol : http
+-----------^-------------+
         |
+-----------+----------+
| Users controllers | Port : 11110
| | Pcol : http
+-----------^----------+
        |
+-------------+------------+
| GATEWAY (API using HAPI)| Port : 80
+--------------------------+ Pcol : http

To list

[X] Abstraction layer to connect to mongodb [] Handle sharded Cluster (replica set + cluster) [] Set Mongos [] Set load balancer to decide which mongo use [X] Users microservices [X] Seneca plugin [X] HAPI Api