Skip to content

Key-Value Storage

Key-Value (KV) storage in Raindrop provides fast, simple data storage for caching, session management, and temporary data that doesn’t require complex relationships or queries. Each piece of data is stored with a unique key for instant retrieval.

What Key-Value Storage Provides

High-Speed Access Optimized for fast read and write operations without the overhead of complex query processing or relationship management.

Simple Data Model Store any data type using string keys for straightforward data organization and retrieval patterns.

Automatic Expiration Built-in TTL (time-to-live) support automatically cleans up temporary data without manual intervention.

Global Distribution Data can be accessed quickly from multiple regions with built-in replication and caching strategies.

When to Use Key-Value Storage

Good Fit

  • Caching: Store frequently accessed data to reduce database load and improve response times
  • Session Management: Maintain user session data with automatic expiration and fast access
  • Configuration Storage: Application settings, feature flags, and runtime configuration that changes without code deployment
  • Temporary Data: Rate limiting counters, temporary tokens, and short-lived workflow state

Consider Alternatives

  • Complex Relationships: Related data with foreign keys belongs in SQL databases
  • Complex Queries: Searching, filtering, or aggregating across multiple records works better in databases
  • Large Files: Binary data and media files should use Bucket Storage instead

Integration Patterns

Database Caching Layer Use KV storage as a fast cache in front of SQL databases, storing frequently accessed records for improved performance.

Session State Management Store user session data, shopping cart contents, and temporary workflow state with automatic cleanup.

Configuration Management Store application configuration, feature flags, and environment-specific settings that can be updated without code changes.

Rate Limiting and Throttling Track request counts and implement rate limiting with automatic counter expiration and reset.

Key-Value storage excels as a fast, temporary layer for data that doesn’t require complex relationships or queries.