Tuesday 28 November 2017

Express architecture for REST server

We are creating a REST server using Express, storage using MYSQL. There are two main components:1) REST endpoints that will be consumed by an app. These endpoints generally query the MYSQL db and return JSON.2) A 'synchronise' component that will retrieve data from an external web api and populate the MYSQL db.Question: Is it preferable to create the synchronise component as a separate node app running on its own process to ensure that the response performance of the REST server is not impacted by retrieving external data and writing to the db?

Submitted November 28, 2017 at 10:47AM by cupofwater5

No comments:

Post a Comment