Momento Documentation
website·Indexed 34 days ago
https://docs.momentohq.com/Documentation for Momento's serverless caching and pub/sub services, including SDK installation guides and API references for Node.js, Python, Go, Java, .NET, Rust, Swift, Kotlin, Dart, PHP, and Elixir. Covers Momento Cache, Momento Topics, and the Momento Valkey Operator for self-hosted Kubernetes clusters.
What's inside Momento
- Momento Object Store is a purpose-built media origin designed to eliminate the latency and inefficiencies found in traditional media origins. It is built on top of Momento's caching and storage solutions to provide extremely low-latency access to media content, ensuring a smooth, buffer-free streaming experience when powering CDNs. Key benefits include instant access to media via a fast caching layer, high reliability during peak traffic, and optimization for near-instant retrieval by CDNs.
Overview of Momento Valkey Operator Custom Resources
The Momento Valkey Operator (v0.6.0) provides five custom resources under the API group and version
valkey.gomomento.com/v1alpha1. Because these resources do not define short names, the full resource name must be used withkubectl(e.g.,kubectl get valkeyclusters).Kind Scope Primary User Purpose ValkeyImageCluster Platform team Allowlist entry for permitted Valkey container images. ValkeyConfigCluster Platform team Defines Valkey node configuration (image, resources, settings, platform ACLs) with inheritance via baseRef.ValkeyRoleCluster Platform team Reusable set of Valkey ACL command and category permissions. ValkeyClusterNamespaced Product team Provisioning interface for declaring topology, placement, TLS, and per-cluster ACLs using a ValkeyConfig.ValkeyNodeNamespaced Operator Internal representation of a single Valkey cluster member (read-only for users). Overview of Momento Leaderboards
Momento Leaderboards is a serverless leaderboard service designed for rapid ingestion, querying, and updates of tens of millions of items. Unlike general-purpose sorted sets in other databases, it is a specialized service optimized for gaming use cases with a more efficient memory footprint. By default, leaderboard items have a 7-day TTL. For persistence (unlimited TTL), users must contact Momento support via their contact form or email (support@momentohq.com).Overview of Momento Cache dedicated Valkey clusters
Momento Cache provides a fully-managed, dedicated Valkey cluster with isolated capacity. Unlike serverless caches, it provides a dedicated backend sized to the workload. Users connect via a managed gateway using any Valkey or Redis client. It is designed as a managed replacement for services like ElastiCache, MemoryDB, or Memorystore, offering multi-AZ resilience when configured with at least one replica per shard and at least two availability zones.Overview of Momento Object Store for Media Streaming
Momento Object Store is a high-performance origin designed for streaming use cases such as Video on Demand (VOD) and live streaming. It utilizes an ultra-low latency, in-memory architecture to store video segments, manifests, and metadata, ensuring fast and reliable delivery to Content Delivery Networks (CDNs) and end users.Overview of Momento Sets
A set in Momento is a collection of elements where each element can appear only once and the order of elements is not guaranteed. All 'write' operations for sets support an optionalCollectionTTLobject to specify Time-To-Live behavior, which takes precedence over the TTL used during the cache connection client initialization.Overview of the Momento Live Event Support Plan
The Live Event Support Plan is a high-value support tier designed for mission-critical media workflows (e.g., live sports, global broadcasts, product launches) requiring low latency and high availability.
Key Plan Details:
- SLA: 99.99%+ service availability for core components.
- Engagement: Up to 1 proactive media event engagement per month.
- Pricing: Starts at $50,000/month (adjusted based on scale, components, and complexity).
- Availability: Global across all Momento-supported AWS regions.
- Target Audience: Broadcasters, streaming platforms, sports leagues, and live shopping platforms.
Overview of Valkey Operator Custom Resources
The Momento Valkey Operator uses five custom resources within the API groupvalkey.gomomento.com/v1alpha1to separate platform governance (what is allowed) from product team requests (what is deployed).Overview of Momento Cloud Linter
Cloud Linter is a web service designed to automatically inspect cloud infrastructure footprints for common inefficiencies. Similar to a code linter, it identifies questionable or potentially costly configurations based on industry design patterns and workload data. While it primarily focuses on cost optimization, it also provides suggestions to improve availability and scalability.Overview of the Momento Valkey Operator
The Momento Valkey Operator manages sharded Valkey clusters on Kubernetes using a declarative approach. Instead of imperative commands, it uses custom resources to drive the cluster state. The operator is responsible for:
- Bootstrapping clusters (creating nodes, forming topology, assigning hash slots, and attaching replicas).
- Maintaining convergence (scaling shards/replicas, performing rolling upgrades, handling primary failover, and enforcing zone-aware placement).
- Managing continuous delivery of TLS certificates and ACL user provisioning.
Overview of Momento Functions execution model
Momento Functions is a high-performance functions-as-a-service (FaaS) platform that uses a sandboxed WebAssembly (Wasm) environment for each invocation. Unlike traditional container or VM-based services, every invocation is effectively a 'cold start' but occurs in microseconds due to the use of pre-compiled, pre-linked Wasm artifacts. This architecture eliminates typical cold-start delays (hundreds of milliseconds) and allows the service to handle sudden traffic bursts without throttling or significant latency increases. The execution model is ephemeral and stateless; any required data persistence must be handled within the function handler.Overview of Momento Topics pub/sub messaging
Momento Topics is a serverless publish/subscribe (pub/sub) messaging service designed for real-time communication between distributed system components. It uses a decoupled architecture where publishers send items to specific topics without needing to know the subscribers.
Key characteristics include:
- Serverless: No infrastructure to manage; topics are created automatically upon the first publication.
- Fire-and-Forget: Items are immediately sent to current subscribers and then discarded. There is no built-in persistence or delivery guarantees.
- Low Latency: Optimized for speed, making it suitable for chat systems, notifications, and data streaming where occasional item loss is tolerable.
- Backend: It utilizes Momento Cache as its backend; users must use an existing cache or create a new one before calling the Topics API.