Serverless Architecture
Skill files7 files

references/

scripts/

templates/

SKILL.md100 lines
1
---
2
name: serverless-architecture
3
description: >
4
Design and implement serverless applications using AWS Lambda, Azure
5
Functions, and GCP Cloud Functions with event-driven patterns and
6
orchestration.
7
---
8
9
# Serverless Architecture
10
11
## Table of Contents
12
13
- [Overview](#overview)
14
- [When to Use](#when-to-use)
15
- [Quick Start](#quick-start)
16
- [Reference Guides](#reference-guides)
17
- [Best Practices](#best-practices)
18
19
## Overview
20
21
Serverless architecture enables building complete applications without managing servers. Design event-driven, scalable systems using managed compute services, databases, and messaging systems. Pay only for actual usage with automatic scaling.
22
23
## When to Use
24
25
- Event-driven applications
26
- API backends and microservices
27
- Real-time data processing
28
- Batch jobs and scheduled tasks
29
- Workflow automation
30
- IoT data pipelines
31
- Multi-tenant SaaS applications
32
- Mobile app backends
33
34
## Quick Start
35
36
Minimal working example:
37
38
```yaml
39
# serverless.yml - Serverless Framework
40
service: my-app
41
42
frameworkVersion: "3"
43
44
provider:
45
name: aws
46
runtime: nodejs18.x
47
region: us-east-1
48
stage: ${opt:stage, 'dev'}
49
memorySize: 256
50
timeout: 30
51
environment:
52
STAGE: ${self:provider.stage}
53
DYNAMODB_TABLE: ${self:service}-users-${self:provider.stage}
54
SNS_TOPIC_ARN: arn:aws:sns:${self:provider.region}:${aws:accountId}:my-topic
55
httpApi:
56
cors: true
57
iam:
58
role:
59
statements:
60
- Effect: Allow
61
Action:
62
- dynamodb:Query
63
- dynamodb:Scan
64
// ... (see reference guides for full implementation)
65
```
66
67
## Reference Guides
68
69
Detailed implementations in the `references/` directory:
70
71
| Guide | Contents |
72
|---|---|
73
| [Serverless Application Architecture](references/serverless-application-architecture.md) | Serverless Application Architecture |
74
| [Event-Driven Lambda Handler Pattern](references/event-driven-lambda-handler-pattern.md) | Event-Driven Lambda Handler Pattern |
75
| [Orchestration with Step Functions](references/orchestration-with-step-functions.md) | Orchestration with Step Functions |
76
| [Monitoring and Observability](references/monitoring-and-observability.md) | Monitoring and Observability |
77
78
## Best Practices
79
80
### ✅ DO
81
82
- Design idempotent functions
83
- Use event sources efficiently
84
- Implement proper error handling
85
- Monitor with CloudWatch/Application Insights
86
- Use infrastructure as code
87
- Implement distributed tracing
88
- Version functions for safe deployments
89
- Use environment variables for configuration
90
91
### ❌ DON'T
92
93
- Create long-running functions
94
- Store state in functions
95
- Ignore cold start optimization
96
- Use synchronous chains
97
- Skip testing
98
- Hardcode configuration
99
- Deploy without monitoring
100

© AJ Geddes · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 14,621 prompts

More by @OpenSourceBuffGuy

See all
Sea turtle carrying floating film studio island prompt image

Sea turtle carrying floating film studio island

Draws a giant sea turtle carrying a floating island film studio through a starry sky, where fairies polish rough film strips into golden film.

image-prompt, nano-banana, 3d-render, cartoon, fantasy-world, creatures, animals, whimsical, dreamy, cinematic, dramatic-lighting, vibrant-colors, bokeh, miniature, widescreen, night-scene, illustration, concept-art, surreal, storytelling, clay-3d

Desert buggy escapes drones past industrial outpost prompt image

Desert buggy escapes drones past industrial outpost

Builds a 15-second desert chase video where a racer in an armored buggy escapes drones past an industrial outpost, using five reference images with set jobs.

video-prompt, hailuo, action, multi-shot, timed-beats, camera-movement, reference-image, character-consistency, negative-prompt, cinematic, sci-fi, cars, landscape, aerial-view, tracking-shot, photorealistic, sound-effects, structured-output, long-form, widescreen

1 view
Cozy Pixel Art Farm Island Village prompt image

Cozy Pixel Art Farm Island Village

Draws a cozy 16-bit pixel-art farming village across six small islands joined by bridges, with exact counts for buildings, animals and crops.

image-prompt, gpt-image, pixel-art, isometric, game-assets, concept-art, maps, worldbuilding, cozy, vibrant-colors, ocean, landscape, wide-shot, widescreen, game-development, video-games, structured-output, whimsical, summer, high-angle, aerial-view, animals, negative-prompt, cityscape

1 view

Reviews

Loading reviews…

Discussion

Loading comments…