{"action":"opened","issue":{"url":"https://api.github.com/repos/happner/happn/issues/16","labels_url":"https://api.github.com/repos/happner/happn/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/happner/happn/issues/16/comments","events_url":"https://api.github.com/repos/happner/happn/issues/16/events","html_url":"https://github.com/happner/happn/issues/16","id":105218951,"number":16,"title":"multiple data locations on one happn instance","user":{"login":"southbite","id":1958406,"avatar_url":"https://avatars.githubusercontent.com/u/1958406?v=3","gravatar_id":"","url":"https://api.github.com/users/southbite","html_url":"https://github.com/southbite","followers_url":"https://api.github.com/users/southbite/followers","following_url":"https://api.github.com/users/southbite/following{/other_user}","gists_url":"https://api.github.com/users/southbite/gists{/gist_id}","starred_url":"https://api.github.com/users/southbite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/southbite/subscriptions","organizations_url":"https://api.github.com/users/southbite/orgs","repos_url":"https://api.github.com/users/southbite/repos","events_url":"https://api.github.com/users/southbite/events{/privacy}","received_events_url":"https://api.github.com/users/southbite/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/happner/happn/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-07T13:46:01Z","updated_at":"2015-09-07T13:46:01Z","closed_at":null,"body":"run on multiple data sources - ie. persist to memory or data file within the same process. \r\n\r\nan example happn config:\r\n{\r\n  mode: 'embedded',\r\n  services: {\r\n    auth: {\r\n      path: './services/auth/service.js',\r\n      config: {\r\n        authTokenSecret: 'a256a2fd43bf441483c5177fc85fd9d3',\r\n        systemSecret: test_secret\r\n      }\r\n    },\r\n    data: {\r\n      path: './services/data_embedded/service.js',\r\n      config: {\r\n        locations:{\r\n          default:\"memory\",\r\n          test:\"/a/test/dbfile.nedb\"\r\n        }\r\n      }\r\n    },\r\n    pubsub: {\r\n      path: './services/pubsub/service.js',\r\n      config: {}\r\n    }\r\n  },\r\n  utils: {\r\n    log_level: 'info|error|warning',\r\n    log_component: 'prepare'\r\n  }\r\n}\r\n\r\nan example set request: \r\nhappnClient.set('/atestpath/12345', {\"test\":\"data\"}, {\"location\":\"test\"}, function(e, resp){\r\n})"}}