Tag

Framework Extension

1 views collected around this technical thread.

政采云技术
政采云技术
Dec 5, 2023 · Fundamentals

Java SPI vs Dubbo SPI: Service Provider Interface Mechanisms Compared

This article explains Java's Service Provider Interface (SPI) mechanism and compares it with Dubbo's enhanced SPI implementation, highlighting how Dubbo addresses the limitations of native Java SPI through configuration format changes and lazy loading.

Dubbo SPIFramework ExtensionJava SPI
0 likes · 19 min read
Java SPI vs Dubbo SPI: Service Provider Interface Mechanisms Compared
vivo Internet Technology
vivo Internet Technology
Aug 28, 2019 · Backend Development

Understanding Java SPI Mechanism

Java’s Service Provider Interface (SPI) is a built‑in discovery mechanism that decouples implementation from usage by letting providers place fully qualified class names in META‑INF/services files, enabling frameworks such as JDBC, logging, and Dubbo to load multiple vendor implementations at runtime via ServiceLoader, though it has limitations like lack of on‑demand loading and concurrency issues.

DecouplingFramework ExtensionJava SPI
0 likes · 8 min read
Understanding Java SPI Mechanism