Profile cover photo
Profile photo
Tomasz Nurkiewicz
656 followers -
nurkiewicz at GMail
nurkiewicz at GMail

656 followers
About
Posts

Post has attachment
Brute-forcing a seemingly simple number puzzle
From StackOverflow Something was bothering me for almost two decades. It was a pen and paper game that I learned when I was around 13. The rules are simple: on an empty 10x10 grid (100 squares in total) you put a number 1 on arbitrary square. Starting from ...
Add a comment...

Post has attachment
Thread pool self-induced deadlocks
Summary (reading time: 10 minutes) Deadlocks are caused by many threads locking the same resources Deadlocks can also occur if thread pool is used inside a task running in that pool Modern libraries like RxJava/Reactor are also susceptible A deadlock is a s...
Add a comment...

Post has attachment
Sneak peek at spring-cloud-function serverless project
Almost a year ago Spring team announced spring-cloud-function umbrella project. It's basically a Spring's approach to serverless (I prefer the term function-as-a-service ) programming. Function<T, R> becomes the smallest building block in a Spring applicati...
Add a comment...

Post has attachment
Reactive emoji tracker with WebClient and Reactor: aggregating data
In the first part we managed to connect to emojitracker.com and consume SSE stream that looks like this: data:{"1F60D":1}

data:{"1F3A8":1,"1F48B":1,"1F499":1,"1F602":1,"2764":1}

data:{"1F607":1,"2764":2} Each message represents the number of various emoji...
Add a comment...

Post has attachment
Reactive emoji tracker with WebClient and Reactor: consuming SSE
In this article we will learn how to consume infinite SSE (server-sent events) stream with Spring's WebClient and Project Reactor . WebClient is a new HTTP client in Spring 5, entirely asynchronous and natively supporting Flux and Mono types. You can techni...
Add a comment...

Post has attachment
Spring Boot 2: Fluxes, from Elasticsearch to controller
Bieszczady Mountains The final piece of the puzzle in our series is exposing reactive APIs via RESTful interfaces. Previously we were seeding our Elasticsearch with some sample fake data . Now it's about time to expose indexing functionality through some AP...
Add a comment...

Post has attachment
Spring Boot 2: Migrating from Dropwizard metrics to Micrometer
Spring Boot 2 is around the corner. One of the minor changes is the replacement of Dropwizard Metrics with Micrometer . The migration path is fairly straightforward and Micrometer actually provides cleaner API. With Metrics, you have to inject MetricRegistr...
Add a comment...

Post has attachment

Post has attachment

Post has attachment
Wait while more posts are being loaded