Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frame data caching #25

Closed
cboden opened this issue May 11, 2012 · 3 comments
Closed

Frame data caching #25

cboden opened this issue May 11, 2012 · 3 comments

Comments

@cboden
Copy link
Member

cboden commented May 11, 2012

Create a data-caching class to be used with protocol frame methods. The same payload sent to multiple clients should not go through the process of being framed multiple times.

@ghost ghost assigned cboden May 11, 2012
@cboden
Copy link
Member Author

cboden commented Jul 17, 2012

Took a quick look at caching libraries that included a memory cache implementation. The short list:

@benbender
Copy link

I would like to suggest Doctrine's Cache-Component as many of ratchet's users may use Symfony because of the session-Integration and this will save one dependency: Doctrine

@cboden
Copy link
Member Author

cboden commented Jul 20, 2013

Doctrine did indeed have the best API. It's nicely decoupled.

I implemented it, did some testing and determined the hashing and looking was as process intensive as framing the message. I think caching would only be beneficial for clients as masking the message would be heavy.

@cboden cboden closed this as completed Jul 20, 2013
@cboden cboden added the invalid label Jun 4, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants