Managing and executing serverless function command sets in a messaging service
AssigneeDigitalOcean, LLC
InventorEric Sven-Johan Swildens
Life of this patent
Estimating the term…
Abstract
A serverless function execution system enables fast, efficient and flexible deployment and execution of serverless functions. User commands are received from external messaging systems that cause functions to be executed. A serverless function associated with the user command is determined and the serverless function is executed in an isolation container at a function computation server. A response from the execution of the serverless function is sent to the external messaging system.
Claims20
A method, comprising:
- creating a command set, the command set includes one or more commands, associated command definitions, and one or more associated function source code locations;
- wherein an external specification file is published at a network accessible location, the external specification file including one or more textual messaging commands associated with each command in the command set along with any parameters that the command accepts;
- wherein local system installation of the external specification file causes the command set to be locally defined and visible to a user;
- wherein a user-selected command causes a textual messaging command to be sent to an external chat messaging service;
- wherein the external chat messaging service sends the textual messaging command to an API endpoint associated with a prefix in the textual messaging command;
- receiving the textual messaging command at the API endpoint;
- executing a serverless function within an isolation container in response to the received textual messaging command by executing function code using the one or more associated function source code locations;
- returning a result of the execution of the serverless function to the external chat messaging service.
One or more non-transitory computer-readable storage media, storing one or more sequences of instructions, which when executed by one or more processors cause performance of:
- creating a command set, the command set includes one or more commands, associated command definitions, and one or more associated function source code locations;
- wherein an external specification file is published at a network accessible location, the external specification file including one or more textual messaging commands associated with each command in the command set along with any parameters that the command accepts;
- wherein local system installation of the external specification file causes the command set to be locally defined and visible to a user;
- wherein a user-selected command causes a textual messaging command to be sent to an external chat messaging service;
- wherein the external chat messaging service sends the textual messaging command to an API endpoint associated with a prefix in the textual messaging command;
- receiving the textual messaging command at the API endpoint;
- executing a serverless function within an isolation container in response to the received textual messaging command by executing function code using the one or more associated function source code locations;
- returning a result of the execution of the serverless function to the external chat messaging service.
A system, comprising:
- a command set, the command set includes one or more commands, associated command definitions, and one or more associated function source code locations;
- wherein an external specification file is published at a network accessible location, the external specification file including one or more textual messaging commands associated with each command in the command set along with any parameters that the command accepts;
- wherein local system installation of the external specification file causes the command set to be locally defined and visible to a user;
- wherein a user-selected command causes a textual messaging command to be sent to an external chat messaging service;
- wherein the external chat messaging service sends the textual messaging command to an API endpoint associated with a prefix in the textual messaging command;
- a function computation system, implemented at least partially in hardware, configured to:
- receive the textual messaging command at the API endpoint;
- execute a serverless function within an isolation container in response to the received textual messaging command by executing function code using the one or more associated function source code locations;
- return a result of the execution of the serverless function to the external chat messaging service.
Dependencies are inferred from the claim text.