July 2018
Intermediate to advanced
324 pages
8h 14m
English
Zappa provides another mechanism for performing the direct invocation of a Lambda function. Previously, we have been using the task and task_sns decorators, but now we are going to use the zappa.async.run method to perform the direct invocation.
The following is a sample code snippet of the zappa.async.run method being used:
from zappa.async import run# Invoking a method in async mode using Lambdarun(method_name_to_invoke, args, kwargs)# Invoking a method in async mode using SNSrun(method_name_to_invoke, args, kwargs, service="sns")
This feature would help you to configure the async invocation dynamically based on your requirements. Decorator task methods are fixed from compilation, but this method statement can be called, ...
Read now
Unlock full access