简体   繁体   English

PHP 会话管理 + AWS ElastiCache 和 DynamoDB

[英]PHP Session Management + AWS ElastiCache & DynamoDB

I've been about to implement an AWS remote session management solution and I've been reading others experiences on the Internet.我正准备实施 AWS 远程会话管理解决方案,并且一直在 Internet 上阅读其他人的经验。

From my readings I gather that ElastiCache is noticeably faster for PHP Session Management but all sessions could be lost if ElastiCache crashed, ran out of room, AWS maintenance period etc and this would cause all users to logout which is overly desired.根据我的阅读,我发现 ElastiCache 对于 PHP 会话管理明显更快,但如果 ElastiCache 崩溃、空间不足、AWS 维护期等,所有会话都可能丢失,这将导致所有用户注销,这是非常需要的。

Question: would it be possible to use both ElastiCache and DynamoDB at the same time?问题:是否可以同时使用 ElastiCache 和 DynamoDB?

I can see both have a php handler that appears simple to setup but would it be possible (or realistic) to use ElastiCache for sessions but backup to DynamoDB at the same time and then check DynamoDB if a sessions isn't present?我可以看到两者都有一个看起来很容易设置的 php 处理程序,但是是否有可能(或现实)使用 ElastiCache 进行会话但同时备份到 DynamoDB,然后如果会话不存在则检查 DynamoDB?

thoughts?想法?

Any opinions on the speed difference between ElastiCache & DynamoDB for PHP Session Management?对 ElastiCache 和 DynamoDB for PHP Session Management 之间的速度差异有何看法?

No need to combine ElasticCache and DynamoDB.无需结合 ElasticCache 和 DynamoDB。 Just use PHP session handler over Redis .只需在 Redis 上使用PHP 会话处理程序 It is very fast, stable and data is backed to disk by default.它非常快速、稳定并且数据默认备份到磁盘。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM