Starting to really enjoy using MongoDB as a document store

There are a few gotcha’s that I am working through. But apart from these (mostly oddities in the interface between Perl and MongoDB), this is making Tiburon RESTful development go much better. I’ve just started to scratch the surface of what the combined thing will do.

landman@lightning:~/work/development/tiburon/t$ ./version.pl 
result = $VAR1 = '{ "version" : "0.1", "label" : "Alaskan Malamute" }';

and

landman@lightning:~/work/development/tiburon/t$ ./list_boot_servers.pl 
result = $VAR1 = '
[
   {
      "hostport" : "3001",
      "_id" : "523d540e9745f48429000000",
      "name" : "test1",
      "default" : "false",
      "hostname" : "10.9.8.7",
      "description" : "this is only a test boot server",
      "timestamp" : "1379750926",
      "label" : "test1 boot server",
      "enabled" : "1"
   },
   {
      "timestamp" : "1379751200",
      "hostport" : "3002",
      "_id" : "523d552416d220a729000000",
      "name" : "test2",
      "label" : "test2 boot server",
      "hostname" : "1.2.3.4",
      "default" : "true",
      "description" : "this is only a test boot server",
      "enabled" : "1"
   }
]

';

The API for this version is mostly defined, and I am cleaning it up, and filling in the stubs, mostly on the boot_server side. Once that is done, filling in the other bits is relatively straightforward.

More later.

Viewed 75263 times by 5809 viewers