Hi All,
When we deploy API micro-gateway without complete container management
system we do not have way to track all running instance details from
central place. Sometimes all the deployments will not have enough resources
to deploy container management system. In that case if we have some
mechanism to run simple ballerina code within gateway itself that would be
helpful. If we have something like that then when server starts up it can
call some external service and confirm gateway existence. Also over the
time it can do periodic call to external system and update it with
aliveness.
We can implement this feature in different ways. Push model and pull model
both should work in this case.

Pull Model - The external system can call some API and based on the
response trigger an action. In this case external system need to know IP
address and port of each micro-gateway running in system. If we have
controlled environment with fixed known number of gateways this will be
good option.
Push model - The external system opens some API to call to do an action. So
in this case micro-gateway will call external and update about its
aliveness. Advantage with this approach is central system do not need to
know anything about gateways and running locations. We can start gateways
anywhere and they will inform status to central system.

In this case external system can be some monitoring tool, control point,
service registry, management server or anything like that. We can see
use-cases related to each of these. Having generic support with extension
capability would be much useful here.
Shall we let users to engage some kind of ballerina file when generate
microgateway artifact? So when gateway runs it will call some init function
and it can do some background work while gateway running. This capability
will help us to do some additional stuff when we implement solutions. As
example we can think of generating UUID during server startup and send it
to some external system for tracking purpose.

Thanks,
sanjeewa.

-- 
*Sanjeewa Malalgoda*
Software Architect | Associate Director, Engineering - WSO2 Inc.
(m) +94 712933253 | (e) sanje...@wso2.com | (b) Blogger
<http://sanjeewamalalgoda.blogspot.com>, Medium
<https://medium.com/@sanjeewa190>

GET INTEGRATION AGILE <https://wso2.com/signature>
Integration Agility for Digitally Driven Business
_______________________________________________
Architecture mailing list
Architecture@wso2.org
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to