質問

I've been about to implement an AWS remote session management solution and I've been reading others experiences on the 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.

Question: would it be possible to use both ElastiCache and DynamoDB at the same time?

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?

thoughts?

Any opinions on the speed difference between ElastiCache & DynamoDB for PHP Session Management?

役に立ちましたか?

解決

No need to combine ElasticCache and DynamoDB. Just use PHP session handler over Redis. It is very fast, stable and data is backed to disk by default.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top