hoonkim / rune

Free Serverless architecture implementation working on openstack.
Apache License 2.0
6 stars 4 forks source link

#10 Passing function call information to another instance #10

Closed zzttt closed 7 years ago

zzttt commented 8 years ago
  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 8 years ago

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

hoonkim commented 8 years ago

So, @zzttt all instances would have their own Queue? or just gonna use Queue of Openstack?

zzttt commented 8 years ago

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).

teo-jang commented 8 years ago

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 :^)

hoonkim commented 8 years ago

Function Call Example.

{ "user" : "kim", "project" : "rune", "function" : "getTime", "params" : [ "seoul", "kr", "nano" ], "validate" : true }

teo-jang commented 8 years ago

check it @hoonkim

hoonkim commented 8 years ago

@TaeyoungJang checking what?

zzttt commented 8 years ago

@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

teo-jang commented 8 years ago

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

zzttt commented 8 years ago

@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