Trigger to a queue for sending updates to a cache layer

From: Marcus Engene <mengpg2(at)engene(dot)se>
To: POSTGRESQL <pgsql-general(at)postgresql(dot)org>
Subject: Trigger to a queue for sending updates to a cache layer
Date: 2014-08-20 20:25:30
Message-ID: 53F5043A.7020103@engene.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

I'm working with a retail site with tens of millions of products in
several languages.

For the detail pages, we try to cache in memcached. We also have quite a
bit of keyword translation lookups (for international queries to solr).

We're thinking of adding a nosql layer that takes the big beating with
the mundane reads. I don't fancy manually adding code to every possible
place in the php code that touches the related tables.

What fast trigger solution would you use for this? I'm thinking of
something that would just push (via fdw?) data to a queue; table name
and item id. Naturally it should not slow down pg noticable and have
stellar uptime.

Is the whole concept a stupid idea?

Thanks,
Marcus

Browse pgsql-general by date

  From Date Subject
Next Message Julien Rouhaud 2014-08-20 20:27:46 Re: POWA tool
Previous Message Ramesh T 2014-08-20 18:21:03 Re: POWA tool