문제

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