Posts
Setting Up Your Microservice With Micronaut
Micronaut is a JVM-based framework designed to help developers build building modular, easily testable microservice applications.
It has several tools that are needed to build a microservice application like:
Dependency Injection and Inversion of Control (IoC) Sensible Defaults and Auto-Configuration Configuration and Configuration Sharing Service Discovery HTTP Routing HTTP Client with client-side load-balancing At the same time, it provides:
Fast startup time Reduced memory footprint Minimal use of reflection Minimal use of proxies Easy unit testing It was designed to avoid some downsides of other frameworks used to build microservices.
Posts
Server Sent Events With Jax-RS
Java EE 8 has been around for some time and it brought many improvements to the Java ecosystem and it’s many APIs. In this post we will talk about something that was brought by the fresh JAX-RS 2.1 specification, the Server-Sent Events.
Server-Sent Events (or SSE) are a one-way channel meant to send one to multiple messages from the server to the client(browser or java) in a single request. It’s built over HTPP and also has the capability to broadcast messages to event listeners registered on it.
Posts
Crawling the Web With Scrapy
Scrapy is a web crawler tool developed in Python with a high-level and simple syntax to get data from websites.
Installation You can install it using pip:
pip install scrapy or Anaconda
conda install -c conda-forge scrapy or you can download the source.
Developing a spider In this post, we’ll get the title and the link of the articles in the first page of the BBC Website.
We will use the following script to crawl it:
Posts
Gradle Basic Tutorial
Gradle Basics Tutorial 1. Overview In this tutorial, we will cover some basics of Gradle, a polyglot build system.
2. Installation 2.1. Prerequisite In order to install Gradle, you must have a Java JDK or JRE installed on your machine. Gradle will use whatever java installation it finds in your path.
2.2. Gradle You can follow this link to download one of the Gradle distributions.
2.3. GRADLE_HOME Environment Variable For running Gradle from every path in the system, we must first configure the GRADLE_HOME environment variable.