Skip to main content

Posts

Showing posts with the label web development

Node Garbage Collection

Garbage Collection Garbage collection (GC) can have a big impact on the performance of your apps. GC is a process that the Node.js runtime regularly runs to clean up any objects that were created and are not used anymore. If you create a lot of objects in your code (or a dependency does) this can slow down your app. It’s therefore a good idea to keep an eye on this. We shipped GC magic dashboard to make this easy for you! Once you upgrade your node package to  1.2.0  and deploy your app a new  Node.js Heap Statistics  dashboard will appear. Let’s look at what data is on the dashboard! Heap Statistics Node.js reserves memory to store your objects in. This is called the “heap”. The top graph in the dashboard displays the total size of your heap, and how much of it is used. If you see a lot of variation here that’s an indication something might be off. In this screenshot we put some load on this test app, and then stopped requesting pages for a bit. You can clearly see that the Node.js ru

Open Graph Protocol

The Open Graph protocol The Open Graph protocol Introduction The Open Graph protocol enables any web page to become a rich object in a social graph. For instance, this is used on Facebook to allow any web page to have the same functionality as any other object on Facebook. While many different technologies and schemas exist and could be combined together, there isn't a single technology which provides enough information to richly represent any web page within the social graph. The Open Graph protocol builds on these existing technologies and gives developers one thing to implement. Developer simplicity is a key goal of the Open Graph protocol which has informed many of the technical design decisions . Basic Metadata To turn your web pages into graph objects, you need to add basic metadata to your page. We've based the initial version

Webpack

webpack At its core, webpack is a static module bundler for modern JavaScript applications. When webpack processes your application, it internally builds a dependency graph which maps every module your project needs and generates one or more bundles . Since version 4.0.0, webpack does not require a configuration file to bundle your project. Nevertheless, it is incredibly configurable to better fit your needs. To get started you only need to understand its Core Concepts : Entry Output Loaders Plugins Mode Browser Compatibility This document is intended to give a high-level overview of these concepts, while providing links to detailed concept-specific use cases. For a better understanding of the ideas behind module bundlers and how they work under the hood, consult these resources: Manually Bundling an Application Live Coding a Simple Modul

NPM Packages For Your App

40-npm-packages 40 Useful NPM Packages for Node.js Apps in 2021 Overview of popular NPM packages for Node.js backend development. Do you know them all? Our Blog January 20, 2021 • 12 min read Long ago, software engineers realized they could significantly speed up the development process by eliminating the need to write repetitive code in every application over and over again. Node.js applications benefit from more than a million open-source packages available in the NPM package registry. Most popular packages get well over 10 million weekly downloads and are at the foundation of many applications, from small pet projects to well-known tech startups. Today, 97 percent of code in modern web applications comes from npm modules. We’ll briefly cover the popular ones that will save you from reinventing the wheel. Web Frameworks expre class="langu