MCPcopy Index your code
hub / github.com/akamai-developers/serverless-architectures-and-patterns

github.com/akamai-developers/serverless-architectures-and-patterns @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
352 symbols 586 edges 91 files 18 documented · 5% updated 2mo ago★ 691 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Enterprise Architectures & Patterns

Build Status

This repository contains a collection of enterprise architectures and patterns, to illustrate the potential of Spin and WebAssembly (Wasm) for building real-world applications.

Each folder contains a self-contained example, including a high-level explanation of the pattern/architecture and instructions on how to build and run the particular Spin App(s).

Getting Started with Spin

If you haven't used Spin before, we highly recommend exploring the official Spin documentation to get started. There you'll find everything you need. From installing Spin on your local machine, over language-specific guides, to advanced techniques for building serverless Wasm applications.

Supported Platforms

Each and every samples lists supported platforms. See the following list of all platforms mentioned:

  • Local Machine (spin up)
  • SpinKube
  • Akamai Functions

Architectures & Patterns in this Repository

CronJobs in Kubernetes

CRUD APIs

Command and Query Responsibility Segregation (CQRS)

Patterns for building HTTP APIs

Application Variables (aka Configuration Data)

Distributed Application Patterns

Testing

Are you looking for a particular pattern or architecture

We do our best to keep the list of enterprise architectures and patterns continuously growing. If you're missing a particular architecture or pattern, create an issue and let us know.

Extension points exported contracts — how you extend this code

Validate (Interface)
(no doc) [3 implementers]
http-crud-rust-mysql/src/models.rs
CacheKeyProvider (Interface)
(no doc) [1 implementers]
caching-rust/src/model.rs
Negotiate (Interface)
(no doc) [1 implementers]
content-negotiation-rust/src/content_negotiation.rs
CustomerListModel (Interface)
(no doc)
aggregate-pattern/customers-service/src/models.ts
CustomerDetailsModel (Interface)
(no doc)
aggregate-pattern/customers-service/src/models.ts

Core symbols most depended-on inside this repo

handle
called by 14
http-crud-rust-mysql/src/api.rs
into
called by 10
long-running-jobs-over-http/shared/src/lib.rs
get_image_from_request_body
called by 7
image-transformation/api/src/helpers.rs
send_jpg
called by 7
image-transformation/api/src/helpers.rs
badRequest
called by 6
http-crud-js-sqlite/src/handlers.js
db
called by 6
http-crud-go-sqlite/pkg/persistence/sqlite.go
get_connection
called by 6
http-crud-rust-mysql/src/persistence.rs
badRequest
called by 6
http-crud-js-pg/src/handlers.js

Shape

Function 214
Class 60
Method 52
Struct 18
Interface 5
Enum 2
TypeAlias 1

Languages

Rust70%
Go21%
TypeScript9%

Modules by API surface

http-crud-rust-mysql/src/models.rs16 symbols
distributed-todo-app/src/http-api/src/models.rs12 symbols
cors-rust/src/models.rs10 symbols
aggregate-pattern/aggregates-service/src/models.rs10 symbols
image-transformation/api/src/lib.rs9 symbols
cqrs-servicechaining/gateway/src/lib.rs9 symbols
http-crud-rust-mysql/src/persistence.rs8 symbols
http-crud-js-sqlite/src/handlers.js8 symbols
http-crud-js-pg/src/handlers.js8 symbols
http-crud-go-sqlite/pkg/persistence/sqlite.go8 symbols
cqrs-servicechaining/commands/src/models.rs8 symbols
cqrs-rust/crates/commands/src/models.rs8 symbols

Datastores touched

(mysql)Database · 1 repos
todoDatabase · 1 repos
sampleDatabase · 1 repos
spinDatabase · 1 repos

For agents

$ claude mcp add serverless-architectures-and-patterns \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page