hoonkim/rune

#10 Passing function call information to another instance

Closed this issue · 10 comments

zzttt commented
  1. Might have to define how to inform function calls from users.
    • I'll send this information to @hoonkim
  2. Need to get information from @taeyoungjang 's API gateway
zzttt commented

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?

zzttt commented

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?

zzttt commented

@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

@zzttt
Response is received should be contained execution time of functions.

zzttt commented

@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