#10 Passing function call information to another instance
Closed this issue · 10 comments
- Might have to define how to inform function calls from users.
- I'll send this information to @hoonkim
- Need to get information from @taeyoungjang 's API gateway
Function call would be sent through RabbitMQ so I ask @hoonkim to make a queue to receive mine.
I'm going to test a sample practice and inform you of the result
So, @zzttt all instances would have their own Queue? or just gonna use Queue of Openstack?
all instances you manage. I think you might have to make a few instances which have rabbitMQ and one of my instances is going to send msg to yours . just let me know what the instances you use(address of the instances on OpenStack).
case of HTTP:
refer below links:
RuneHTTP merged
both you can import this library and implement additional function also.
case of RabbitMQ:
I think @hoonkim will submit special, powerful library for using rabbitMQ to US :^)
Function Call Example.
{ "user" : "kim", "project" : "rune", "function" : "getTime", "params" : [ "seoul", "kr", "nano" ], "validate" : true }
@taeyoungjang
checking what?
@hoonkim will send function's result to @taeyoungjang through ResponseFunctionCall which I pass on the argument of call method in wisp_monitor
the result data might have to be a dictionary type ( type check was implemented by @taeyoungjang )
so I suggest that @hoonkim make a dictionary type JSON data for the result
@taeyoungjang
Resource state of instances and execution time will be sent on a response when the function call 's requested
plz inform if this logic has any issues