Home » JavaScript » Node.js

Node.js

Top 5 Performance Metrics for Node.js Applications

Interested in monitoring your Node.js application performance? Try AppDynamics for Free. The last couple articles presented an introduction to Application Performance Management (APM) and identified the challenges in effectively implementing an APM strategy. This article builds on these topics by reviewing five of the top performance metrics to capture to assess the health of your enterprise Node.js application. Specifically this ...

Read More »

Update DynamoDB Items with Node.js

On a previous post we proceeded into inserting items to DynamoDB using Node.js. DynamoDB also supports updating items. We will use the Login table for the update examples. When issuing an update you must specify the primary key of the item you want to update. var updateName = function(email,fullName,callback) { var docClient = new AWS.DynamoDB.DocumentClient(); var params = { TableName:"Users", ...

Read More »

Scan DynamoDB Items with Node.js

On previous posts we covered how to query a DynamoDB database Query DynamoDB Part 1 Query DynamoDB Part 2. Apart from issuing queries DynamoDB also offers Scan functionality. What scan does is fetching all the Items you might have on your DynamoDB Table. Therefore scan does not require any rules based on our partition key or your global/local secondary indexes. ...

Read More »

Query DynamoDB Items with Node.js Part 2

On a previous post we had the chance to issue some basic DynamoDB query actions. However apart from the basic actions the DynamoDB api provides us with some extra functionality. Projections is a feature that has a select-like functionality. You choose which attributes from a DynamoDB Item shall be fetched. Keep in mind that using projection will not have any impact on ...

Read More »

Create DynamoDB tables with Node.js

On this post we will create Tables on a DynamoDB Database using node.js Before getting started we need to have local dynamodb installed since we want to avoid any costs for dynamodb usage. There was a previous post on local dynamodb. In case you use docker you can find a local dynamodb image or you can create one on you own ...

Read More »

Insert Items to DynamoDB Tables using Node.js

On a previous article we learned how to create DynamoDB Tables using Node.js. Next step is to insert items to the DynamoDB Tables previously created. Keep in mind that for the insert action the most basic step is to specify the the primary key. For the table users the primary key is the attribute email. You can add as many attributes ...

Read More »

Scheduling jobs on Node.js with agenda

There are many ways to schedule jobs in your application. A very common practice is to back our jobs with persistence. By doing so we will be informed in the future if the job did fail or succeed and when it should be the next execution. Agenda is a light-weight job scheduling library for node.js. It is backed with mongodb. It is ...

Read More »

Creating a hash in Node.js

Introduction We require hashes everywhere, like setting the password in database as hash instead of plain text password, to check whether if file is tampered or not during transmission or checking integrity of file or messages transferred over network, etc. This small article will give detailed look at creating hash from Node.js core crypto module and later in the article, it shows how ...

Read More »

Scheduling jobs on Node.js with node-schedule

Batching is a great part of todays software development. The business world runs on batch from bank statements to promotion emails. Node.js has some good libraries for such cases. Node Schedule is a light cron like scheduler for node. npm install node-schedule In case your are used to cron and the cron expression format, it will be pretty easy for ...

Read More »

Seriate: The Glue Between SQL Server and Node.js

An example Node.js application which connects to a SQL server and serves up data via HTTP endpoints. Before leaving my last client, I was asked if it was possible for Node.js to connect to Microsoft’s SQL Server. The reasoning behind this was that the company wanted to move away from a pure Microsoft stack because of the cost and try ...

Read More »

Want to take your WEB dev skills to the next level?

Grab our programming books for FREE!

Here are some of the eBooks you will get:

  • PHP Programming Cookbook
  • jQuery Programming Cookbook
  • Bootstrap Programming Cookbook
  • Building WEB Apps with Node.js
  • CSS Programming Cookbook
  • HTML5 Programming Cookbook
  • AngularJS Programming Cookbook