Maglevity

MagLev, Ruby, …

Simple Worker Queue with Procs in MagLev

with 4 comments

At the last PDX.rb meeting, Jesse Cooke presented “A very simple implementation of a background queue/worker” in MagLev. His program uses ruby Proc objects as the unit of work. Since procs are just objects, MagLev can save them to disk and run them in any MagLev VM connected to the repository. Instant, native distributed worker queue!
Read the rest of this entry »

Written by maglevdevelopment

July 8, 2011 at 8:51 am

Posted in MagLev, Ruby

Indexing Collections in MagLev

leave a comment »

MagLev brings built-in, scalable object persistence to Ruby. You can store large numbers of objects persistently on disk and retrieve them from any VM connected to the repository, all with ACID transactions. Large collections of data often need to be searched. This post introduces MagLev’s indexing and collection querying features.

Read the rest of this entry »

Written by maglevdevelopment

April 30, 2010 at 3:01 pm

Posted in MagLev

Multiple Repositories in MagLev

leave a comment »

MagLev stores all of its state, including application classes and code, in a repository. By default, MagLev has one repository named “maglev”. But there are times you may want to have multiple repositories. If you have multiple applications, you may want to store each in its own repository. Or, you may want one repository per developer, or different repositories for development, test, staging and deployment. MagLev provides some management tools that allow you to create, destroy, start, stop and perform other tasks on repositories.

Read the rest of this entry »

Written by maglevdevelopment

January 29, 2010 at 2:16 pm

Posted in MagLev