Archive For The “work work” Category
Just recently I have been playing around with multiple active profiles. This is apart from having the main application config, plus the profile that matches the environment on which the application is running. That is quite commonplace. Instead I’m talking more of an additional profile that gets activated aside from the environment profile based on…
It is not uncommon for a Java application to have a number of properties that needs to be defined for it to to run smoothly at start. While these configurable parameters that are required by the app can be set in the code, placing those outside is a more logical and cleaner approach. Things like…
Did a simple, customized SQL query builder that’s only specific for UPDATE statements some time early last year. Thought I’d just write it down here. It was a smaller part of a bigger application. It wasn’t required for all update cases, but a number of them did. I’ve mostly re-written it from memory. It should…
I recently started on the path on building content on the fly that gets sent out as soon as possible, using a template engine, but from a back-end perspective. If that makes sense? This is for an event-driven application that sits there and listens for incoming messages. A simple one. Consume the message as soon…
Somebody asked me recently why their POJO validator was not working as expected. They had already followed the “code I wrote” down to a T. Emphasis on the quotes, because trust me that block of code for bean validation they used as reference from an older project I did, was pretty much a very trivial…
There is this Java library that I utilize to quickly get values from JSON objects that is fairly easy to use. This would be Jayway JsonPath. More can be had at their GitHub page. It is still being actively maintained. There appear to be a number of contributors involved in this project at different points…
How many countless times must I have found myself with a piece of JSON string that is formatted in a way that makes it very hard for me to read. Perhaps you’ve also experienced this several times too? As a back-end developer, having to deal with a lot of JSON is unavoidable. Heck, I deal…
The other day, I was working on a huge JSON object that had a number of collections in it. The entire object had to be saved into a relational database, which means I was mapping out the raw JSON data to its logical representation as database tables. Though the object wasn’t that complicated, it did…
Using Repository implementation with Spring Data, one can develop applications with an underlying database rapidly in Spring Boot. The Spring Data JPA handles the abstraction of the persistence layer quite well. Many times you probably won’t need anything else beyond what it has to offer. A lot can already be done with the exposed methods…
As a back-end developer, consuming JSON objects is pretty much very common. I think it is second only to publishing data in JSON format, the other end of what is usually a 2-way street. We may have a REST API endpoint that accepts orders for an online food delivery service that takes in JSON formatted…
Going to skip right away to the juicy stuff as much as I can. I won’t discuss about what OpenShift is or what the Secrets feature does. This is only about my experience the first time I dealt with Secrets and how I used it for a Spring Boot Kafka consumer/client application. The problem I…
I was writing a Kafka consumer application for a proof-of-concept (POC) project recently when I got into this weird de-serialization behavior, where when it reached a certain field there would always be an error no matter what. This is even though, and I checked repeatedly, that the Kafka producer was serializing and publishing the object…
So I am involved in this project currently where the project architect suggested that we follow HATEOAS-driven RESTful web service. This is probably something I have read about before, but didn’t really pay much attention to, or I simply forgot. Learning something new is always fun. Well, most of the time it is. It depends…
Been working from home for over 2 months now. I think that’s going to be 3 soon. This is what it looks like. It is kind of a mess. Cables all over. A few rebellious toys are squatting on my work area. If you look closely, there is a coffee bean grinder behind fat Iron…