Migrating to serverless is a necessary procedure for many companies now, for lowering down the costs of the infrastructure and for increasing reliability of the systems.
Is it possible to migrate to API Gateway/Lambda a whole application with no effort and maintaining the compatibility with the original machine?
The answer is “yes” and this tutorial explains how it is possible to achieve this goal in minutes and not in weeks. Continue reading “Migrating an existing REST API (NodeJS/Express) to serverless using Lambda/API Gateway with ClaudiaJS and AWS-Serverless-Express”
I have many reasons why to avoid the use of Node.JS for enterprise solutions (webservices, websites, etc.), but I think that the following one is definitive:
- Each error within a single script will make the whole application crash and will require a command-line restart
Let’s see the following example scenario:
Our Node.JS application (myapp) is a simple web app (it doesn’t matter which framework we use) that responds to the following 2 URIs: /myapp/test1/ and /myapp/test2/.
Those URIs are managed by two specific controllers: controller1.js and controller2.js.
Only controller2.js is bugged and so when /myapp/test2/ is requested by the browser it causes a fatal error.
Where’s the problem? Every web application works like that.
Yes, it is. But no other “old” application such as Php would crash within the single script error!
Let’s understand that also the other URL (/myapp/test1/) that contained the not bugged code will be unavailable within the node server crash. Unlike Php applications that will continue to correctly work if there is a single script with a fatal error.
I have many other reasons for thinking that Node.JS is just a toy, and not a professional tool, but I think this issue is one of the worst behaviours I could have ever found in a modern programming language.
Some interesting articles on the equivalence between node.JS and EVIL:
I am currently testing this marvellous jQuery plugin: SHAKE.JS.
It can detect accelerometer events such as SHAKING and trigger some action when it happens.
It will work on mobile only, so don’t try to shake your monitor!! Continue reading “HTML5 accelerometer and SHAKE!”
With this function you can change the address bar strings of your browser… Feel interested?
Continue reading “HTML5 Address Bar Accessing – a simple Graphic EQ!”
- To write a cool and efficient Web App
- Jquery (any version from 1.3 to 1.10)
- CSS3 (transitions and animations)
- HTML5 (basic)
Continue reading “Web Apps: JQuery transitions should not be used… let’s see why”
- a new feature you are developing now only affecting one page that needs to be triggered when an old asynchronous function returns a deferred object.
Every time I have to work with the beautiful JW Player I discover a new interesting feature. Have you ever had disconnection problems when using it with online streaming service? Continue reading “JW Player and Streaming: automatic reconnection”