Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] new module: mod_memcache


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
rupa at rupa.com
Guest





PostPosted: Wed Apr 01, 2009 4:19 pm    Post subject: [Freeswitch-users] new module: mod_memcache Reply with quote

Announcing a new module: mod_memcache

Up until now one had two choices for storing arbitrary key/value pairs.  hash or db.  hash is fast, but it is local to the current FreeSWITCH instance.  If you run multiple instances of FreeSWITCH then one could use db, an ODBC connection and a centralized database server (eg: postgresql).

The choice was between fast but isolated or slow and distributed.

memcached (http://www.danga.com/memcached/) is a high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load.  Only now you can use it for dynamic phone applications.

Check out the wiki page at: http://wiki.freeswitch.org/wiki/Mod_memcache

Try this module out and file bug (jira) reports for problems / enhancement requests.

--
-Rupa
Back to top
msc at freeswitch.org
Guest





PostPosted: Wed Apr 01, 2009 4:33 pm    Post subject: [Freeswitch-users] new module: mod_memcache Reply with quote

Rupa,

Thanks for adding to the project! Well done.
-MC

2009/4/1 Rupa Schomaker <rupa@rupa.com (rupa@rupa.com)>
Quote:
Announcing a new module: mod_memcache

Up until now one had two choices for storing arbitrary key/value pairs.  hash or db.  hash is fast, but it is local to the current FreeSWITCH instance.  If you run multiple instances of FreeSWITCH then one could use db, an ODBC connection and a centralized database server (eg: postgresql).

The choice was between fast but isolated or slow and distributed.

memcached (http://www.danga.com/memcached/) is a high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load.  Only now you can use it for dynamic phone applications.

Check out the wiki page at: http://wiki.freeswitch.org/wiki/Mod_memcache

Try this module out and file bug (jira) reports for problems / enhancement requests.

--
-Rupa

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

Back to top
anthony.minessale at g...
Guest





PostPosted: Wed Apr 01, 2009 4:33 pm    Post subject: [Freeswitch-users] new module: mod_memcache Reply with quote

Thank you,

You are brave to contribute something on April 1st =D
I saw it go into tree everyone so it's real Wink


2009/4/1 Rupa Schomaker <rupa@rupa.com (rupa@rupa.com)>
Quote:
Announcing a new module: mod_memcache

Up until now one had two choices for storing arbitrary key/value pairs.  hash or db.  hash is fast, but it is local to the current FreeSWITCH instance.  If you run multiple instances of FreeSWITCH then one could use db, an ODBC connection and a centralized database server (eg: postgresql).

The choice was between fast but isolated or slow and distributed.

memcached (http://www.danga.com/memcached/) is a high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load.  Only now you can use it for dynamic phone applications.

Check out the wiki page at: http://wiki.freeswitch.org/wiki/Mod_memcache

Try this module out and file bug (jira) reports for problems / enhancement requests.

--
-Rupa

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




--
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400
Back to top
rupa at rupa.com
Guest





PostPosted: Wed Apr 01, 2009 4:38 pm    Post subject: [Freeswitch-users] new module: mod_memcache Reply with quote

2009/4/1 Anthony Minessale <anthony.minessale@gmail.com (anthony.minessale@gmail.com)>
Quote:
Thank you,

You are brave to contribute something on April 1st =D
I saw it go into tree everyone so it's real Wink

haha!  I didn't even think of that.



--
-Rupa
Back to top
jmesquita at gmail.com
Guest





PostPosted: Wed Apr 01, 2009 4:47 pm    Post subject: [Freeswitch-users] new module: mod_memcache Reply with quote

Congrats on the contribution Rupa. And thank you.

Mesquita

On Apr 1, 2009, at 6:31 PM, Rupa Schomaker wrote:
Quote:


2009/4/1 Anthony Minessale <anthony.minessale@gmail.com (anthony.minessale@gmail.com)>
Quote:
Thank you,

You are brave to contribute something on April 1st =D
I saw it go into tree everyone so it's real Wink

haha! I didn't even think of that.



--
-Rupa
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
sicfslist at gmail.com
Guest





PostPosted: Wed Apr 01, 2009 8:07 pm    Post subject: [Freeswitch-users] new module: mod_memcache Reply with quote

Rupa,

This is a big contribution!  Thanks!  Can't wait to play with this.

SDR
Back to top
brian at freeswitch.org
Guest





PostPosted: Wed Apr 01, 2009 8:13 pm    Post subject: [Freeswitch-users] new module: mod_memcache Reply with quote

At the very least you didn't say "I can't wait to play with it!" Razz


On Apr 1, 2009, at 7:59 PM, Shelby Ramsey wrote:
Quote:
Rupa,

This is a big contribution! Thanks! Can't wait to play with this.

SDR


Brian West
brian@freeswitch.org (brian@freeswitch.org)



-- Meet us a ClueCon! http://www.cluecon.com
Back to top
Prometheus001 at gmx.net
Guest





PostPosted: Thu Apr 02, 2009 8:17 am    Post subject: [Freeswitch-users] new module: mod_memcache Reply with quote

Wow, this is cool. Fantastic work!
I tried this immediately. This is also very useful to share data across
applications.

Here an example how to share data between Freeswitch and a ruby
memcache-client:
On Ruby/Rails I set the namespace e.g. to "freeswitch" for the same
memcached server in environment.rb
In Freeswitch I add the following line to the dialplan:
<action application="set" data="ignore=${memcache(set
freeswitch:test 'This is a test')}"/> <!-- Memcache test -->
Take care to prefix your key (here "test") with the Ruby namespace
"freeswitch:"

Now you can receive the data in Ruby in raw mode:
Quote:
Quote:
CACHE.get("test",0)
=> 'This is a test"

The 0 as second parameter is important for the raw mode, otherwise ruby
will try to marshall the result from memcached and fails.

I added this info to the wiki.

Best regards
Peter


Brian West schrieb:
Quote:
At the very least you didn't say "I can't wait to play with it!" Razz


On Apr 1, 2009, at 7:59 PM, Shelby Ramsey wrote:

Quote:
Rupa,

This is a big contribution! Thanks! Can't wait to play with this.

SDR

Brian West
brian@freeswitch.org <mailto:brian@freeswitch.org>

-- Meet us a ClueCon! http://www.cluecon.com <http://www.cluecon.com/>



------------------------------------------------------------------------

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
rupa at rupa.com
Guest





PostPosted: Thu Apr 02, 2009 8:20 am    Post subject: [Freeswitch-users] new module: mod_memcache Reply with quote

On Thu, Apr 2, 2009 at 8:08 AM, Peter P GMX <Prometheus001@gmx.net (Prometheus001@gmx.net)> wrote:
Quote:
Wow, this is cool. Fantastic work!
I tried this immediately. This is also very useful to share data across
applications.
[snip]

Quote:

I added this info to the wiki.

Best regards
Peter

Thanks for the wiki update -- great to see examples of how to actually use it. Smile



--
-Rupa
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services