Articles

Deploy Friday EP — 16 Micronaut: A Modern Full-Stack Framework for Building Microservice and Serverless

A Question and Answer session with guests: 

Micronaut is an open-source, JVM-based framework for building full-stack, modular, easily testable microservice and serverless applications. Unlike reflection-based IoC frameworks that load and cache reflection data for every single field, method, and constructor in your code, with Micronaut, your application startup time and memory consumption are not bound to the size of your codebase. Micronaut’s cloud support is built right in, including support for common discovery services, distributed tracing tools, and cloud runtimes. 

Source de l’article sur DZONE

Let’s Discuss Memoization, or Should I Say Memoisation

“In computing, memoization or memoisation is an optimization technique used primarily to speed up computer programs by storing the results of expensive function calls and returning the cached result when the same inputs occur again” — Wikipedia article on memoization

I’ve written a two part article in Memoization in JavaScript. The first part explains the concept with basic implementation in JavaScript code. It details a way to apply the technique on function calls. It is generic to handle most JavaScript functions.

Source de l’article sur DZONE

Cache in Java With LRU Eviction Policy

What a cache!

Introduction

LRU (or Least Recently Used) is a cache eviction strategy, wherein if the cache size has reached the maximum allocated capacity, the least recently accessed objects in the cache will be evicted. Also, the objects in the cache could be accessed by multiple threads in an application so is very important that the cache has a good synchronization mechanism in-built. This article describes the implementation of a Java-based cache with LRU eviction strategy, but fundamentally, this applies to any programming language.

You may also like: Introducing Caching for Java Applications

Source de l’article sur DZONE

Tech Roundup With Experts — The Holy Grail of Web Scalability

Startups face extreme amounts of uncertainty and challenges when their web applications’ user-base multiplies. They need to be flexible in their choices, such as choosing the right framework, database, and architecture besides building the right team. What’s more, unlike enterprises, startups have only limited time to scale. Even worse, if they are fortunate enough, they might need to scale their capacity tenfold in a few months.

To understand the nuts and bolts of web scalability, we spoke to some experts and asked for their tips on improving web scalability. Here’s what they said…

Source de l’article sur DZONE