architecture, mongodb

Why i still love MongoDB

After reading a Slashdot article on MongoDB vs DynamoDB (chosen) i’d like to summarize why DynamoDB became less attractive to me:

 

  • Architect/Developer chose to serialize a collection of objects into JSON and save that field as one column – this screams future problems in searching and simple lookups
  • Apparently (this may have changed) there is 64Kb limit on the item , some people start to compress data (json)
  • Manually rebuilding indexes – no comment here
  • Pricing model has to be predefined – number of reads per second, although affordable vs dedicated cloud based mongodb deployment (given that i am not sure if performance numbers are the same)
  • No way to embed objects , you’d have to create infinite amount of columns (similar to cassandra)

 

 

Share This:

architecture, javascript

Publishing to AWS SNS topic

SNS is wonderful , supporting HTTP, email(No HTML markup), email-json, SQS and SMS (US only for now).

Basically it allows you to receive various types of notifications or an app subscribed via various protocols.

Let’s bypass discussion how to subscribe to a Topic , its pretty trivial and is very flexible (some thirdparty can receive an HTTP call based on a message that arrived, awesome, right? )

Here is an example using NodeJS and AWS node library of publishing a message.

var AWS = require('aws-sdk');
//don't hard code your credential 🙂
 AWS.config.update({accessKeyId: 'ZZZ', secretAccessKey: 'ZZZ', region: 'us-east-1'});

var sns = new AWS.SNS();
sns.publish(
{TopicArn:'arn:aws:sns:us-east-1:283fdfdf-warning', Message:"Just testing for now ", Subject: "testing "}
, function(err,data){
 if (err){
     log("Error sending a message "+err);
 }else{
     log("Sent message {0}".format(data.MessageID));
 }
 });

 

Share This:

javascript

Helping organize NodeJS meetup in Toronto

I love to network within meetups, it’s a great way of learning and meeting smart people.

I had a pleasure of speaking at the last NodeJS meetup on the topic of Clustering nodeJS and tonight InPowered (where i currently work) is hosting another NodeJS meetup with amazing speakers.

 

Toronto Node.js Meetup: The Summer Edition

Tuesday, Jul 23, 2013, 7:00 PM

Location details are available to members only.

40 Members Went

Greetings Nodesters. We’ve got a last minute summer meetup for you, with two great speakers from out of town. Benjamin Lupton the creator of DocPad, and Matthew Dobson from Apigee.We have a new venue this meetup, 24 Duncan Street, courtesy of InPowered Inc.Benjamin Lupton is the founder of Bevry, a Sydney based company dedicated to empowering dev…

Check out this Meetup →

 

We’ll have the creator of DocPad (Benjamin Lupton) talking about his web framework and Matthew Dobson ( Software Engineer at Apigee) who will be talking about Node.js as your API layer.

I will have the pleasure of introducing and talking about InPowered and our product.

Share This: