View a markdown version of this page

比較節點型 Valkey、Memcached 和 Redis OSS 叢集 - Amazon ElastiCache

本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。

比較節點型 Valkey、Memcached 和 Redis OSS 叢集

Amazon ElastiCache 支援 Valkey、Memcached 和 Redis OSS 快取引擎。每個引擎都提供一些優點。使用本主題中的資訊來協助您選擇最符合您需求的引擎和版本。

重要

建立快取、節點型叢集或複寫群組之後,您可以升級至較新的引擎版本,但無法降級至較舊的引擎版本。如果您想要使用較舊的引擎版本,則必須刪除現有的快取、節點型叢集或複寫群組,並使用較舊的引擎版本再次建立。

這兩個引擎表面上看起來很類似。每個引擎都是記憶體內金鑰/值存放區。不過,實際上有顯著的差異。

如果適用下列情況,請選擇 Memcached:
  • 您需要盡可能最簡單的模型。

  • 您需要執行具有多個核心或執行緒的大型節點。

  • 您需要能夠向外和向內擴展,並視您系統需求增加和減少來新增和移除節點。

  • 您需要快取物件。

如果下列適用於您,請選擇具有 ElastiCache 的 Valkey 或 Redis OSS:
Memcached、Valkey 或 Redis OSS (停用叢集模式) 和 Valkey 或 Redis OSS (啟用叢集模式) 的比較摘要
Memcached Valkey 或 Redis OSS (停用叢集模式) Valkey 或 Redis OSS (啟用叢集模式)
Engine versions+ 1.4.5 and later 4.0.10 and later 4.0.10 and later
Data types Simple ‡ 2.8.x - Complex * 3.2.x and later - Complex †
Complex †
Data partitioning Yes No Yes
Cluster is modifiable Yes Yes 3.2.10 and later - Limited
Online resharding No No 3.2.10 and later
Encryption in-transit 1.6.12 and later 4.0.10 and later 4.0.10 and later
Data tiering No 6.2 and later 6.2 and later
Memory efficiencies No Valkey 8.0 and later Valkey 8.0 and later
Bloom filters No Valkey 8.1 and later Valkey 8.1 and later
Vector search No Valkey 8.2 and later Valkey 8.2 and later
Full-text search No Valkey 9.0 and later Valkey 9.0 and later
Hybrid search (text + vector) No Valkey 9.0 and later Valkey 9.0 and later
Aggregation pipelines No Valkey 9.0 and later Valkey 9.0 and later
Hash field expiration No Valkey 9.0 and later Valkey 9.0 and later
Numbered databases in cluster mode No N/A Valkey 9.0 and later
合規認證
Compliance Certification

    FedRAMP

    HIPAA

    PCI DSS

 

是 - 1.6.12 和更新版本

是 - 1.6.12 和更新版本

 

4.0.10 和更新版本

4.0.10 和更新版本

4.0.10 和更新版本

 

4.0.10 和更新版本

4.0.10 和更新版本

4.0.10 和更新版本

Multi-threaded Yes No No
Node type upgrade No Yes Yes
Engine upgrading Yes Yes Yes
High availability (replication) No Yes Yes
Automatic failover No Optional Required
Pub/Sub capabilities No Yes Yes
Sorted sets No Yes Yes
Backup and restore For serverless caches only, not applicable to node-based clusters Yes Yes
Geospatial indexing No 4.0.10 and later Yes
備註:
‡ string, objects (like databases)
* string, sets, sorted sets, lists, hashes, bitmaps, hyperloglog
† string, sets, sorted sets, lists, hashes, bitmaps, hyperloglog, geospatial indexes
+ Excludes versions which are deprecated, have reached or soon to reach end of life.

選擇適用於您叢集的引擎之後,我們建議您使用該引擎的最新版本。如需詳細資訊,請參閱支援的節點類型