[root@00-0c-29-aa-24-ba ~]# imgadm list
UUID NAME VERSION OS PUBLISHED
9eac5c0c-a941-11e2-a7dc-57a6b041988f base64 13.1.0 smartos 2013-04-26T15:17:57Z
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"max":100000,"chunkSize":500,"highWaterMark":500,"maxConcurrentBatches":4,"timeoutBetweenChunks":0,"valueSize":10,"wrap":false,"ellapsed":3403} | |
{"max":100000,"chunkSize":500,"highWaterMark":500,"maxConcurrentBatches":4,"timeoutBetweenChunks":0,"valueSize":10,"wrap":true,"ellapsed":2656} | |
{"max":100000,"chunkSize":500,"highWaterMark":500,"maxConcurrentBatches":4,"timeoutBetweenChunks":0,"valueSize":100,"wrap":false,"ellapsed":3437} | |
{"max":100000,"chunkSize":500,"highWaterMark":500,"maxConcurrentBatches":4,"timeoutBetweenChunks":0,"valueSize":100,"wrap":true,"ellapsed":2662} | |
{"max":100000,"chunkSize":500,"highWaterMark":500,"maxConcurrentBatches":4,"timeoutBetweenChunks":0,"valueSize":1000,"wrap":false,"ellapsed":4186} | |
{"max":100000,"chunkSize":500,"highWaterMark":500,"maxConcurrentBatches":4,"timeoutBetweenChunks":0,"valueSize":1000,"wrap":true,"ellapsed":2549} | |
{"max":100000,"chunkSize":500,"highWaterMark":500,"maxConcurrentBatches":4,"timeoutBetweenChunks":10,"valueSize":10,"wrap":false,"ellapsed":3353} | |
{"max |
I built this service rendered over HTTPS.
We're using the Hawk protocol to authenticate message producers, but since the service will use HTTPS, Hawk is an overkill in my opinion.
Some of the drawbacks of using Hawk in my opinion:
- Signs whole message: overkill when you're using TLS
- Tries to be stateless on the server-side and implements a sort of message non-repeatability by including a timestamp inside the message. The timestamp has to be equal to the server-side time take or give 1 minute. This imposes time synchronizatin between client and server, which is hard to enforce.
The goal is for each client to have a local personalized copy of the database. This personal local database is a subset of all the existing documents. Clients can share documents or not.
Each client intiates an authenticated session with the server. On each session, server sets up personalized read and write filters. These filters only propagate changes that the user is allowed / interested in.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm http PUT https://registry.npmjs.org/nock | |
npm http 201 https://registry.npmjs.org/nock | |
npm http GET https://registry.npmjs.org/nock | |
npm http 200 https://registry.npmjs.org/nock | |
npm http PUT https://registry.npmjs.org/nock/-/nock-0.32.3.tgz/-rev/288-9c18881d4c96938b50a923918f2b06cb | |
npm http 502 https://registry.npmjs.org/nock/-/nock-0.32.3.tgz/-rev/288-9c18881d4c96938b50a923918f2b06cb | |
npm ERR! registry error parsing json |
Node.js kernel generators.
Have the node. Now need to figure out:
- DHT-based sharding, Gossip and all that stuff
- Proxy: Gossip client + reverse HTTP proxy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var https = require('https'); | |
var querystring = require('querystring'); | |
var events = ['socket', 'connection', 'response', 'data', 'end', 'close', 'finish']; | |
var postData = querystring.stringify({ | |
'msg' : 'Hello World!' | |
}); | |
var options = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function someFn(req, res) { | |
// do stuff... | |
} | |
route('/someRoute', someFn); |
I hereby claim:
- I am pgte on github.
- I am pgte (https://keybase.io/pgte) on keybase.
- I have a public key ASBfSphgzAav1T3NDE4lHUnF6XEjThKMBaMHdr0XUsH-nwo
To claim this, I am signing this object: