Rocker (★ 273) - Java 8 optimized, memory efficient, speedy template engine producing statically typed, plain java objects.
The main feature of Rocker that it is compilable templates. That means no more reflection logic and "warm-up" time in production, which makes this template engine very fast. It really worth to try for your next project!
#java #template
The main feature of Rocker that it is compilable templates. That means no more reflection logic and "warm-up" time in production, which makes this template engine very fast. It really worth to try for your next project!
#java #template
Testcontainers recently passed over 1000 stars threshold. It is an perfect reason to pen a post about this utterly useful library.
Intro
When you write unit-tests for your code, you usually mock all the external dependencies, such as database calls or message queue polling. But what if you need to make integration tests with real dependencies? Usually, it is quite tricky, because in this case, you have to have real services installed in your system, which is not very convenient. Say, you want to write integration tests working with a database, in this situation you need a real database running on your local machine.
As you can see, it is kind of a problem and not flexible at all, because you run tests on other developers computers and CI servers and all these guys also need to run the database to make tests passing. Is there any convenient solution?
Solution
Introducing Testcontainers (★ 1006). This java-library allows you to set up your dependencies right from your integration tests using Docker containers. Your tests remain independent of other services because each test set up an individual environment for its runtime.
Look how easy to use it. Say, you need a Redis for your test, then you add the class rule like so:
and a spare Redis will be available for your tests on the 6379 port.
Please, refer to official documentation for more examples. This library also exists as a plugin for Spock framework and Scala tests.
#java #docker #tests #container #spock #scala
Intro
When you write unit-tests for your code, you usually mock all the external dependencies, such as database calls or message queue polling. But what if you need to make integration tests with real dependencies? Usually, it is quite tricky, because in this case, you have to have real services installed in your system, which is not very convenient. Say, you want to write integration tests working with a database, in this situation you need a real database running on your local machine.
As you can see, it is kind of a problem and not flexible at all, because you run tests on other developers computers and CI servers and all these guys also need to run the database to make tests passing. Is there any convenient solution?
Solution
Introducing Testcontainers (★ 1006). This java-library allows you to set up your dependencies right from your integration tests using Docker containers. Your tests remain independent of other services because each test set up an individual environment for its runtime.
Look how easy to use it. Say, you need a Redis for your test, then you add the class rule like so:
// Set up a redis container
@ClassRule
public static GenericContainer redis =
new GenericContainer("redis:3.0.2")
.withExposedPorts(6379);
and a spare Redis will be available for your tests on the 6379 port.
Please, refer to official documentation for more examples. This library also exists as a plugin for Spock framework and Scala tests.
#java #docker #tests #container #spock #scala
Micronaut (★ 712) - a modern, JVM-based, full-stack framework for building modular, easily testable microservice applications.
Micronaut is developed by the creators of the Grails framework and takes inspiration from lessons learnt over the years building real-world applications from monoliths to microservices using Spring, Spring Boot and Grails.
Please read also the article "Getting started with Micronaut"
#jvm #kotlin #java #groovy #microservice
Micronaut is developed by the creators of the Grails framework and takes inspiration from lessons learnt over the years building real-world applications from monoliths to microservices using Spring, Spring Boot and Grails.
Please read also the article "Getting started with Micronaut"
#jvm #kotlin #java #groovy #microservice
QuestDB - (★ 10.2K at GitHub) is an open-source time-series database for high throughput ingestion and fast SQL queries with operational simplicity. It supports schema-agnostic ingestion using the InfluxDB line protocol, PostgreSQL wire protocol, and a REST API for bulk imports and exports.
QuestDB is well suited for financial market data, application metrics, sensor data, real-time analytics, dashboards, and infrastructure monitoring.
Please check also the aweomse video here, with nice introduction and demonstraion of all the features.
P.S. Thanks to Dmitry for this link!
#db #timeseries #java
QuestDB is well suited for financial market data, application metrics, sensor data, real-time analytics, dashboards, and infrastructure monitoring.
Please check also the aweomse video here, with nice introduction and demonstraion of all the features.
P.S. Thanks to Dmitry for this link!
#db #timeseries #java
👍3💊1