Showing posts with label Microservice. Show all posts
Showing posts with label Microservice. Show all posts

Wednesday, November 9, 2016

gui call microservice

http request (GUI) to micro service (node js )

             _request.getJSON("/cfaes", request, bodyObj, function (rqstId, data, err) {


Service.prototype.UpdateScopeOfAudienceBulk = function(req, res, next) {

when done everything, need to return to GUI
put results in req.result

req.result = {};
req.result.count = count;
next(); // this will return back to GUI from micro service

confusing part is "next" is kind of corresponding to err

Thursday, April 14, 2016

Microservice example http://microservices.io/


https://github.com/eventuate-examples/eventuate-examples-java-spring-todo-list