TSThomas Schillingintschuehly.deSvelte 5 Islands in Spring Boot with Kotlin: The Preact AlternativeSvelte 5 Islands in Spring Boot with Kotlin: The Preact Alternative In my previous post I showed how to use Preact Islands to handle the 5% of interactions where Alpine.js falls apart. Preact works gr2d ago·16 min read
GRGanesh Rama Hegdeinkotlindeepdive.hashnode.devChapter 1 : UseCase01 - Coroutine Builders and Execution Semantics Mental Model: What Is a Coroutine? A coroutine is a suspendable computation, represented as a state machine, executed under a Job, scheduled by a dispatcher and resumed via a continuation. It is not a4d ago·13 min read
DDrixstinlonside.hashnode.devSaga pattern with KafkaThe problem that kept me awake It was 2 AM. My phone wouldn't stop buzzing. Our order processing system had just lost data consistency. One user had paid but their order wasn't created. Another receiv5d ago·17 min read
GRGanesh Rama Hegdeinkotlinflow.hashnode.devChapter 30 : UseCase27 - Flow Cancellation & Cooperative Cancellation Flow cancellation is not an optional feature. It is a core part of how coroutines are designed to behave. When a collector stops collecting, the entire upstream flow is cancelled automatically. This i6d ago·6 min read
GRGanesh Rama Hegdeinkotlinflow.hashnode.devChapter 29 : UseCase26 - Channels and Flow BridgeNow we do one level below Flow. Flow is built on coroutines.Coroutines are built on channels. Here we convert channel to Flow and build Flow using channelFlow. We also understand producer-consumer in 6d ago·4 min read
GRGanesh Rama Hegdeinkotlinflow.hashnode.devChapter 27 : UseCase24 - StateFlow (State Holder Semantics)What is StateFlow? StateFlow is a special type of SharedFlow that: Always holds a current value Requires an initial value Replays the latest value to new collectors Conflates updates automaticallyFeb 20·3 min read
GRGanesh Rama Hegdeinkotlinflow.hashnode.devChapter 28 : UseCase25 - Hot vs Cold Flow comparisonIn this use case we will do an architectural level comparison of hot versus cold flow. CODE IMPLEMENTATION package org.kotlinflowlearner.stockflow.usecases.uc25 import kotlinx.coroutines.flow.* imporFeb 20·4 min read
JAJules ADONSIinblog.julesadonsi.comCréer un écran d’Onboarding moderne avec Jetpack Compose(HorizontalPager)L’onboarding est une étape essentielle pour présenter votre application aux nouveaux utilisateurs. Un écran clair, fluide et animé permet d’améliorer l’expérience utilisateur dès les premières secondeFeb 19·6 min read
GRGanesh Rama Hegdeinkotlinflow.hashnode.devChapter 26 : UseCase23 - SharedFlow (Hot Streams)Everything that we have seen until now was cold flows. Now we enter the world of "hot” flows. Cold flow means: Nothing runs until collected Each collector gets its own independent execution Flow reFeb 19·4 min read
GRGanesh Rama Hegdeinkotlinflow.hashnode.devChapter 25 : UseCase22 - Context Switching with flowOnIn this chapter we answer the core question : If Flow is sequential, then how do we control which thread executes which part? That’s what flowOn does. Flow is context-preserving by default. It means tFeb 19·2 min read