Credential caching on distributed java app

22 views
Skip to first unread message

Matthew Macchia

unread,
Jan 22, 2017, 10:32:52 AM1/22/17
to AdWords API Forum
Howdy,
I've got a distributed java application with lots of adwords accounts with their own ad words sessions. We cache each ad words session locally on the box on startup, however the best practices guide suggests a distributed cache:


Data store

A central data store can be used to share the credential between processes and servers.

You can make use of an existing data store or deploy one specific to the sharing of credentials between servers. Solutions include caching servers (such as Memcached or Infinispan), or NoSQL data stores (such as MongoDB).


I want to move to this direction since this is an expensive operation. The main problem here is that the objects in the Java AP,I AdWordsSession and Credential are not light weight DTO's and they are not serializable.  I would normally convert them to JSON and store them in redis, but I can't really do that in this situation.
What strategy should we use to move those to a distributed cache?

I've read these two posts which speak more to caching locally then distributed:

Let me know if I'm being too vague and I'll elaborate.
Thanks
-matt



Reply all
Reply to author
Forward
0 new messages