Skip to main content

You are currently viewing the Trifork Blog, to view our full website please go to Trifork.com

Using Axon with PostgreSQL without TOAST

The client I work for at this time is leveraging Axon 3. The events are stored in a PostgreSQL database. PostgreSQL uses a thing called TOAST (The Oversized-Attribute Storage Technique) to store large values. From the PostgreSQL documentation: “PostgreSQL uses a fixed page size (commonly 8 kB), and does not allow tuples to span multiple […]

Smart energy consumption insights with Elasticsearch and Machine Learning

Smart energy consumption insights with Elasticsearch and Machine Learning

At home we have a Youless device which can be used to measure energy consumption. You have to mount it to your energy meter so it can monitor energy consumption. The device then provides energy consumption data via a RESTful api. We can use this api to index energy consumption data into Elasticsearch every minute […]

Heterogeneous microservices

Heterogeneous microservices

Heterogeneous microservices Microservices architecture is increasingly popular nowadays. One of the promises is flexibility and easier working in larger organizations by reducing the amount of communication and coordination between teams. The thinking is, teams have their own service(s) and don’t depend on other teams, meaning they can work independently, thereby reducing coordination efforts. Especially with […]

Simulating an Elasticsearch Ingest Node pipeline

Indexing document into your cluster can be done in a couple of ways: using Logstash to read your source and send documents to your cluster; using Filebeat to read a log file, send documents to Kafka, let Logstash connect to Kafka and transform the log event and then send those documents to your cluster; using […]

Writing less code

Have you had that feeling that you have to write too much code to build simple functionality? Some things just feel repetitive, they feel you should be not have to write them yourself, instead a framework should make your life easier. Recently I’ve been building a project in Java/Spring, and after some time I started wondering […]

Measure the Adequacy of Android Unit Tests with Mutation Testing

Measure the Adequacy of Android Unit Tests with Mutation Testing

Unit tests are an essential tool in a trustworthy test suite for an Android application or any other software system for that matter. But unit tests themselves doesn’t guarantee that the right features or requirements are tested, even if you did a thorough effort to cover as much code as possible in your entire code […]