Jump to content

Memcached To Log Impressions

Recommended Posts


i just started to use revive in a website with more than 500K daily impressions and i noticed an important change on server load.

The problem is on impression logging which makes too many sql queries.


So i was thinking to use memcache mechanism to collect impressions and write them in the database every hour... 


i found this implementation https://github.com/revive-adserver/revive-adserver/issues/220

which looks fine (i would increase limit 11 to 100)


Do you have any alternatives, or might estimate if there would be significant inaccuracy in impression logs.


Thanks in advance

Link to comment
Share on other sites

  • 2 weeks later...

If you are getting too many MySQL queries you need to optimize your MySQL server and utilize fast disk storage such as SSD or SAS 15K. If you are running your Revive Adserver on a NAS storage such was Amazon Web Services, you will be getting performance issues especially with MySQL queries. With properly server hardware, setup, and optimizations you can server over 20 million impressions per day.

We have performed stress tests and benchmarks on very high traffic Revive Adserver setups and Memcached actually resulted in performance degradation when you compare it to using SSD or SAS storage.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...