-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Well it is up to you.


Use centralized (share folder over NFS ) if this is ok with you.
However, think that you get into troubles (A server invalidates the
cache while the other one  is trying to read it ).

I don't like that "cache manager" ideea.

I would rather use Memcache to cache small amounts of data, because
then the whole stuff would be done in memory, and i think is quickly
and also ... you won't have issues about File permissions / file write
while reading ... etc.

This is my oppinion ...
Alecs
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Use GnuPG with Firefox : http://getfiregpg.org (Version: 0.7.10)

iEYEARECAAYFAkvHQCAACgkQIdlZQSANiuaC1wCfRoqvgyab1EphedFbUFzg0Es9
VDQAn3a4InHDPUkqPQM/V3vL3QSkDdWB
=gsnZ
-----END PGP SIGNATURE-----

On Thu, Apr 15, 2010 at 7:10 PM, pghoratiu <pghora...@gmail.com> wrote:
> Hi!
>
> I have a web application distributed among multiple web servers (2
> servers) with a central DB for sessions. Cache is used for some
> objects and for invalidation I override the save() method to delete
> the local cache. This worked fine for a single server but does not
> scale to multiple servers.
>
> So as a solution I'm thinking to either:
> 1. Moving to a centralized cache - using memcache, sqlite on a shared
> directory,  ...
> 2. Making the cache invalidation more complex - develop some sort of
> cache manager that would remove caches by calling a URL on each
> server.
>
> My question is how do you deal with cache invalidation when deploying
> a symfony application across mutiple servers?
> Which solution would you choose to perform the cache invalidation
> (centralized cache vs. distributed cache manager)?
>
> My environment is Symfony 1.0.X so if you have some technique that can
> be applied to that version it would be great.
>
> Thanks,
>
>    gabriel
>
> --
> If you want to report a vulnerability issue on symfony, please send it to 
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>
> To unsubscribe, reply using "remove me" as the subject.
>



-- 
Have a nice day!

Alecs
Certified ScrumMaster

There are no cannibals alive! I have ate the last one yesterday ...
I am on web:  http://www.alecslupu.ro/
I am on twitter: http://twitter.com/alecslupu
I am on linkedIn: http://www.linkedin.com/in/alecslupu
Tel: (+4)0722 621 280

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to