Redis and Memcached

借助适用于 Redis 的 Amazon ElastiCache,您可以先从小规模起步,然后随应用程序的不断增多轻松扩展您的 Redis 数据 — 最终可扩展到一个内存数据高达 170.6TiB 的集群。它支持您将 Redis 集群环境扩展到 250 个节点和 250 个分片。它支持在线集群规模调整以扩展和缩减您的 Redis 集群,无需停机,可自动适应不断变化的需求。为扩展读取容量,ElastiCache 允许您跨多个可用区添加多达五个只读副本。为扩展写入容量,ElastiCache 支持 Redis 集群,这使您能够跨多个主节点对写入流量进行分区。
Sub-millisecond latency

Both Redis and Memcached support sub-millisecond response times. By storing data in-memory they can read data more quickly than disk based databases.

Developer ease of use

Both Redis and Memcached are syntactically easy to use and require a minimal amount of code to integrate into your application.

Data partitioning

Both Redis and Memcached allow you to distribute your data among multiple nodes. This allows you to scale out to better handle more data when demand grows.

Support for a broad set of programming languages

Both Redis and Memcached have many open-source clients available for developers. Supported languages include Java, Python, PHP, C, C++, C#, JavaScript, Node.js, Ruby, Go and many others.

Advanced data structures

In addition to strings, Redis supports lists, sets, sorted sets, hashes, bit arrays, and hyperloglogs. Applications can use these more advanced data structures to support a variety of use cases. For example, you can use Redis Sorted Sets to easily implement a game leaderboard that keeps a list of players sorted by their rank.

Multithreaded architecture

Since Memcached is multithreaded, it can make use of multiple processing cores. This means that you can handle more operations by scaling up compute capacity.

Snapshots

With Redis you can keep your data on disk with a point in time snapshot which can be used for archiving or recovery.

Replication

Redis lets you create multiple replicas of a Redis primary. This allows you to scale database reads and to have highly available clusters.

Transactions

Redis supports transactions which let you execute a group of commands as an isolated and atomic operation.

Pub/Sub

Redis supports Pub/Sub messaging with pattern matching which you can use for high performance chat rooms, real-time comment streams, social media feeds, and server intercommunication.

Lua scripting

Redis allows you to execute transactional Lua scripts. Scripts can help you boost performance and simplify your application.

Geospatial support

Redis has purpose-built commands for working with real-time geospatial data at scale. You can perform operations like finding the distance between two elements (for example people or places) and finding all elements within a given distance of a point.

转载于:https://www.cnblogs.com/cloudrivers/p/11445145.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值