Tagged articles
Retrofit
43 articles · Page 1 of 1
This article details the full-stack implementation of SSE-based streaming for an AI assistant, covering protocol design (delta/done/error events), backend challenges (ThreadLocal, Retrofit @Streaming, JSON incremental parsing), frontend fetch/ReadableStream handling, and Nginx deployment fixes for buffering and timeouts.
AI chatJSON parsingRetrofit
0 likes · 15 min read

This article introduces retrofit-spring-boot-starter, a lightweight HTTP client framework for Spring Boot that integrates Retrofit, detailing its core features, quick start guide, custom interceptors, connection pool management, logging, retry mechanisms, error decoding, global interceptors, circuit breaking, microservice calls, call adapters, data converters, and best practices for production use.
HTTP ClientJavaRetrofit
0 likes · 25 min read

This tutorial walks through integrating the Retrofit HTTP client into Spring Boot using the retrofit‑spring‑boot‑starter, covering dependency setup, interface definition, token handling, global interceptors, and essential configuration such as logging, timeouts, and retry policies.
HTTP ClientJavaRetrofit
0 likes · 12 min read

This article walks through integrating the Retrofit HTTP client into Spring Boot applications using the retrofit‑spring‑boot‑starter, covering dependency setup, basic request definitions, token handling, custom interceptors, global logging, timeout and retry configurations, and provides concise code examples for each step.
HTTP ClientJavaRetrofit
0 likes · 11 min read

This article introduces retrofit‑spring‑boot‑starter, a lightweight HTTP client for Spring Boot that simplifies request creation and offers powerful features such as custom OkHttpClient injection, annotation‑based interceptors, connection‑pool management, logging, retry, error decoding, circuit‑breaker support, service discovery, and flexible call adapters and converters, all with concise configuration examples.
Circuit BreakerHTTP ClientInterceptor
0 likes · 21 min read

This article introduces the lightweight retrofit‑spring‑boot‑starter for Spring Boot, explains its key features such as custom OkHttpClient, annotation‑based interceptors, logging, retry, circuit‑breaker support, and shows step‑by‑step configuration, dependency setup, and code examples for building robust HTTP client services.
HTTP ClientInterceptorJava
0 likes · 23 min read

This article introduces the Retrofit Spring Boot Starter, a lightweight HTTP client framework for Spring Boot that simplifies HTTP request handling, supports custom OkHttpClient injection, annotation‑based interceptors, logging, retry, error decoding, circuit‑breaker integration, connection‑pool management, global interceptors, microservice calls, and flexible call adapters and converters.
CircuitBreakerHTTPJava
0 likes · 19 min read

This article presents a comprehensive guide on building a highly modular Android network layer by leveraging Kotlin coroutines, Flow, Retrofit, annotation processors, dynamic proxies, and dependency‑injection frameworks to automatically generate Repository classes and streamline MVVM data flow.
AndroidAnnotation ProcessorFlow
0 likes · 16 min read

This article explains the limitations of the default Retrofit baseUrl configuration, reviews three existing solutions, and presents a comprehensive interceptor‑based approach that leverages custom @BaseUrl annotations to dynamically switch base URLs at runtime while handling @Url full‑path parameters correctly.
AndroidDynamicBaseUrlInterceptor
0 likes · 20 min read

This article explains how to combine Kotlin coroutines, Flow, Retrofit, and OkHttp to create a clean, reactive, and maintainable network request framework for Android applications, covering concepts, core principles, and practical code examples.
AndroidCoroutinesFlow
0 likes · 16 min read

retrofit-spring-boot-starter is a lightweight, type‑safe HTTP client framework for Spring Boot that integrates Retrofit with Spring, offering features such as custom OkHttpClient injection, annotation‑based interceptors, connection pool management, logging, retry, error decoding, circuit‑breaker support, and flexible configuration via YAML.
Circuit BreakerHTTP ClientJava
0 likes · 21 min read

This article introduces retrofit-spring-boot-starter, a lightweight, type‑safe HTTP client starter that seamlessly integrates Retrofit into Spring Boot projects, outlines its key features, provides quick usage examples with Maven/Gradle dependencies, interface definitions, injection, configuration options, and advanced capabilities such as custom OkHttpClient injection, annotation‑based interceptors, connection‑pool management, logging, and retry mechanisms.
BackendConfigurationHTTP Client
0 likes · 13 min read

The article introduces retrofit-spring-boot-starter, a lightweight HTTP client library for Spring Boot that simplifies HTTP calls, offers extensive features such as custom OkHttpClient injection, annotation‑based interceptors, retry, logging, circuit‑breaker, and provides detailed usage examples, configuration options, and advanced customization techniques.
ConfigurationHTTP ClientJava
0 likes · 22 min read

This article demonstrates how to create a clean, reusable network request layer for Android using Kotlin, Retrofit, and OkHttp, covering dependency setup, custom token interceptors, Retrofit utility creation, request/result handling with ViewModel extensions, and comprehensive file upload and download implementations.
AndroidFile UploadKotlin
0 likes · 17 min read

This article presents retrofit-spring-boot-starter, a lightweight Spring Boot starter that simplifies HTTP calls by integrating Retrofit with customizable OkHttpClient, annotation‑driven interceptors, logging, retry, circuit‑breaker, error decoding, and flexible converters, along with detailed usage examples and configuration guidelines.
HTTP ClientRetrofitcircuit-breaker
0 likes · 20 min read

The article uncovers a lock‑induced latency in Retrofit’s service‑method cache during cold‑start, demonstrates how moving the synchronization to a class‑level lock and customizing Retrofit.create eliminates the bottleneck, and then shows how dynamic‑proxy hooks combined with Kotlin coroutines can add transparent caching and low‑intrusion BFF aggregation without altering the library.
AndroidBFFCoroutines
0 likes · 21 min read

The article presents a non‑intrusive Android framework that preloads page network requests in parallel with page initialization, describing its three‑part architecture, routing and network interceptors, code implementation, and performance gains that can reduce overall page load time by up to 100 ms.
Network PreloadingOkHttpRetrofit
0 likes · 12 min read

This guide demonstrates how to integrate Retrofit into a Spring Cloud Alibaba environment, covering Nacos registration, Sentinel fault‑tolerance, service discovery, load balancing, and detailed code examples for building, configuring, and testing microservice communication, rate limiting, and circuit‑breaker features.
RetrofitSentinelSpring Cloud Alibaba
0 likes · 13 min read

This article introduces the retrofit‑spring‑boot‑starter library, shows how to add the Maven dependency, configure @RetrofitScan, define HTTP interfaces, inject them into services, and demonstrates advanced features such as annotation‑based interceptors, custom interceptors, connection‑pool management, logging, exception formatting, call adapters, converters, and global interceptors for Spring Boot projects.
BackendHTTP ClientInterceptor
0 likes · 14 min read

This article introduces four essential Java open‑source libraries—MapStruct, Retrofit, Faker, and Wiremock—explaining their purposes, advantages over traditional approaches, and providing concise code examples to help developers streamline object mapping, HTTP communication, test data generation, and service mocking.
FakerMapStructOpen-source
0 likes · 12 min read

This article details the redesign of Snowball's Android network framework using OkHttp and Retrofit, covering motivations, architectural layers, solutions for domain switching, custom annotations, data validation, migration strategy, and the resulting performance and maintainability improvements.
AndroidKotlinOkHttp
0 likes · 17 min read

This article explains how to combine Retrofit with Kotlin coroutines on Android, compares the traditional RxJava method with coroutine-based implementations, and presents two encapsulation techniques—using a DSL and leveraging CoroutineExceptionHandler—to simplify asynchronous network calls and centralize error handling.
AndroidCoroutinesDSL
0 likes · 14 min read

This article explains two Kotlin‑based network request wrappers for Android that reduce boilerplate by using LiveData, Retrofit, OkHttp and coroutines, compares their design trade‑offs, provides complete Activity, ViewModel, Repository and BaseRepository code samples, and shows how to handle loading, success, error and multiple data sources in a clean MVVM architecture.
AndroidCoroutinesKotlin
0 likes · 10 min read

This article presents a Kotlin‑based technique for removing the repetitive BaseResponse wrapper from Retrofit calls by introducing a custom Converter.Factory and annotation‑driven ConvexTransformer that automatically extracts the data payload.
AndroidConverterCustomAnnotation
0 likes · 7 min read

The article introduces retrofit-spring-boot-starter, a Spring Boot‑compatible lightweight HTTP client library that integrates Retrofit with extensive features such as custom OkHttpClient injection, annotation‑driven interceptors, logging, retry, error decoding, circuit‑breaker support, connection‑pool management, call adapters and data converters, providing a concise way to perform HTTP calls in Java backend projects.
Circuit BreakerHTTP ClientInterceptor
0 likes · 21 min read

This article explains how to integrate Retrofit with Kotlin coroutines following Google’s Android architecture guidelines, covering coroutine basics, OkHttp and Retrofit setup, generic response handling, repository abstraction, ViewModel usage, and lifecycle‑aware coroutine scopes to achieve clean, asynchronous network calls.
AndroidKotlin CoroutinesLiveData
0 likes · 13 min read

This article explains how to replace direct OkHttp or RestTemplate usage in Spring Boot projects with the retrofit‑spring‑boot‑starter, covering dependency setup, annotation configuration, interface definition, injection, custom interceptors, connection‑pool management, logging, exception formatting, call adapters, converters, and global interceptors.
ConfigurationHTTP ClientInterceptor
0 likes · 14 min read

The article introduces retrofit‑spring‑boot‑starter, a lightweight HTTP client framework for Spring Boot that simplifies HTTP request management by integrating Retrofit with features such as custom OkHttpClient injection, annotation‑driven interfaces, global and path‑based interceptors, retry logic, logging, circuit‑breaker support, connection‑pool configuration, and flexible call‑adapter and converter factories.
Circuit BreakerHTTP ClientJava
0 likes · 21 min read

Spring Cloud Square, built on Retrofit and OkHttp, offers a lightweight replacement for Spring Cloud Feign, simplifying cross-service calls with declarative clients, load‑balancing support, and easy Maven integration, and this guide walks you through setup, configuration, and advanced usage examples.
Feign alternativeJavaOkHttp
0 likes · 7 min read

This article investigates why OkHttp timeouts appear ineffective in a Retrofit‑RxJava network stack, examines the internal flow of connectTimeout, readTimeout and writeTimeout through StreamAllocation, AsyncTimeout, and the Watchdog thread, and proposes configuration adjustments to avoid request stalls.
AndroidJavaOkHttp
0 likes · 17 min read

This guide introduces Spring Cloud Square, a Retrofit‑based replacement for Spring Cloud Feign, explains its core components like OkHttp and Retrofit, provides step‑by‑step setup, bean configuration, and code examples for both basic and advanced declarative client usage, and summarizes its current limitations.
FeignJavaRetrofit
0 likes · 7 min read

This article explains how Retrofit 2.6.0 adds support for Kotlin suspend functions by detecting the Continuation parameter, determining the return type, and generating appropriate CallAdapter implementations such as SuspendForResponse and SuspendForBody to integrate coroutine handling with OkHttp.
CallAdapterCoroutinesKotlin
0 likes · 12 min read

This article explains how to quickly integrate the Retrofit HTTP client into a Spring Boot project with the retrofit‑spring‑boot‑starter, covering dependency setup, configuration annotations, interface definition, custom annotation‑based interceptors, connection‑pool management, logging, exception formatting, call adapters, converters, and global interceptors, all illustrated with complete code examples.
HTTPInterceptorJava
0 likes · 13 min read

The retrofit-spring-boot-starter library provides a Spring Boot‑compatible, type‑safe HTTP client built on Retrofit, offering easy integration, customizable OkHttpClient injection, annotation‑based interceptors, connection‑pool management, logging, retry, error decoding, circuit‑breaker support, and flexible call adapters and converters for modern Java backend development.
HTTP ClientRetrofitcircuit-breaker
0 likes · 23 min read

This guide introduces retrofit-spring-boot-starter, a lightweight HTTP client for Spring Boot that simplifies request management, offers rich features such as custom OkHttp injection, annotation‑based interceptors, logging, retry, circuit‑breaker, and detailed configuration, with full code examples and usage patterns.
Circuit BreakerHTTP ClientInterceptor
0 likes · 24 min read

This article explains how to design a network framework from the ground up, explores the three‑layer understanding of frameworks, details the core components, thread scheduling, request/response processing chains, and then deep‑dives into OkHttp and Retrofit implementations, their limitations, and extensibility techniques.
InterceptorOkHttpRetrofit
0 likes · 15 min read

This article provides a comprehensive guide to Kotlin coroutines, covering their concepts, creation methods (launch, runBlocking, async), nesting, suspend functions, cancellation, timeout handling, dispatchers, scopes, underlying implementation, and a practical Retrofit‑OkHttp example for asynchronous network requests in Android.
CoroutinesKotlinRetrofit
0 likes · 20 min read

This article explains how to use the retrofit‑spring‑boot‑starter library to seamlessly combine Square's Retrofit HTTP client with Spring Boot, covering dependency setup, annotation configuration, interface definition, injection, annotation‑based interceptors, connection‑pool management, logging, exception formatting, call adapters, converters, and global interceptors.
HTTP ClientRetrofitspring-boot
0 likes · 14 min read

This guide explains how to integrate Retrofit into a Spring Boot project using the retrofit‑spring‑boot‑starter, covering dependency setup, annotation configuration, custom interceptors, connection pool management, logging, exception formatting, call adapters, converters, and global interception to make HTTP client development more elegant and maintainable.
HTTP ClientInterceptorRetrofit
0 likes · 15 min read

This article shares practical experiences and techniques for Android app development, covering entity class organization, graceful network data handling with Retrofit, robust repository patterns, and clean UI layering using MVVM, DataBinding, and LiveData.
AndroidDataBindingEntity Design
0 likes · 8 min read

This article explains why Retrofit + Gson parsing can fail when server‑sent fields differ from client definitions or when lists contain heterogeneous item types, and demonstrates how to customize TypeAdapters and use @JsonAdapter to gracefully handle these scenarios in Android applications.
AndroidGsonHeterogeneous List
0 likes · 9 min read

This article provides Android developers with practical guidance on using Kotlin instead of Java, covering basic syntax, data classes, singletons, activity navigation, Retrofit with OkHttp, and RxJava to streamline development and improve productivity.
AndroidData ClassesKotlin
0 likes · 5 min read

This comprehensive guide walks Android developers through Retrofit’s fundamentals, usage patterns, URL configuration, parameter handling, custom converters, call adapters, and advanced techniques like file uploads, mock servers, and RxJava integration, providing code examples and deep insights to master network requests efficiently.
AndroidCustom ConverterOkHttp
0 likes · 22 min read
