Autosave: 2023-04-08 18:55:52
This commit is contained in:
		
							parent
							
								
									aaeb1bbead
								
							
						
					
					
						commit
						79f5b3d398
					
				
					 4 changed files with 26 additions and 17 deletions
				
			
		| 
						 | 
					@ -4,19 +4,7 @@ categories:
 | 
				
			||||||
tags: [AWS, aws-lambda, backend]
 | 
					tags: [AWS, aws-lambda, backend]
 | 
				
			||||||
---
 | 
					---
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# AWS Lambda programming model
 | 
					# AWS Lambda handler function
 | 
				
			||||||
 | 
					 | 
				
			||||||
The overall architecure consists in the following three processes:
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
1. Triggers
 | 
					 | 
				
			||||||
2. Handler function
 | 
					 | 
				
			||||||
3. Code
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Triggers
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
See [AWS Lambda triggers](/DevOps/AWS/AWS_Lambda/AWS_Lambda_triggers.md)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Handler function
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
Every Lambda function begins the same way with a handler function. In NodeJS:
 | 
					Every Lambda function begins the same way with a handler function. In NodeJS:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -77,7 +65,3 @@ def handler(event, context):
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    return response
 | 
					    return response
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					 | 
				
			||||||
## Code
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
This is just the stuff that runs in the body of the handler or that is called from the handler body.
 | 
					 | 
				
			||||||
							
								
								
									
										25
									
								
								DevOps/AWS/AWS_Lambda/Lambda_programming_model.md
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								DevOps/AWS/AWS_Lambda/Lambda_programming_model.md
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,25 @@
 | 
				
			||||||
 | 
					---
 | 
				
			||||||
 | 
					categories:
 | 
				
			||||||
 | 
					  - DevOps
 | 
				
			||||||
 | 
					tags: [AWS, aws-lambda, backend]
 | 
				
			||||||
 | 
					---
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# AWS Lambda programming model
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					The overall architecure consists in the following three processes:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					1. Triggers
 | 
				
			||||||
 | 
					2. Handler function
 | 
				
			||||||
 | 
					3. Code
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## Triggers
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					See [AWS Lambda triggers](/DevOps/AWS/AWS_Lambda/Lambda_triggers.md)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## Handler function
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					See [AWS Lambda handler function](/DevOps/AWS/AWS_Lambda/Lambda_handler_function.md)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## Code
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					This is just the stuff that runs in the body of the handler or that is called from the handler body.
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue