<div dir="ltr">Yes if you set the key created to auto expire in a second</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 3, 2014 at 12:31 PM, Olle E. Johansson <span dir="ltr"><<a href="mailto:oej@edvina.net" target="_blank">oej@edvina.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class=""><br>
On 03 Jul 2014, at 14:21, Alex Balashov <<a href="mailto:abalashov@evaristesys.com">abalashov@evaristesys.com</a>> wrote:<br>
<br>
> On 07/03/2014 08:18 AM, Abdelkader Allam wrote:<br>
>> Very true Alex, didnt knew about htables, just checking about it, very<br>
>> interesting :) The added value of Redis though is that other scripts<br>
>> running outside of Kamailio can interact with it and potentially<br>
>> interact with kamailio, can an external script have access to htables in<br>
>> memory db ?<br>
><br>
> Yes, but only rather crudely, via the management interface, i.e.<br>
><br>
>   <a href="http://kamailio.org/docs/modules/4.1.x/modules/htable.html#idp1887744" target="_blank">http://kamailio.org/docs/modules/4.1.x/modules/htable.html#idp1887744</a><br>
><br>
> So, I agree that if external access to the raw sampling is desired, htable is not the best.<br>
<br>
</div>Yes and no.<br>
<br>
It's easy to write a simple HTTP interface for htables...<br>
<br>
I really need per second, not average. I need to react FAST.<br>
<br>
I think one htable with timestamp for last request per IP and one with number of requests for this timestamp will work. Using REDIS may not be fast enough, but I haven't tried. Redis or memcache would easily handle a situation with multiple proxys.<br>

<br>
Would memcached or Redis handle this on a per second basis?<br>
<span class="HOEnZb"><font color="#888888">/O<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</div></div></blockquote></div><br></div>