The full name of SPI is Service Provider Interface, and the corresponding Chinese is the service discovery mechanism. SPI is similar to a pluggable mechanism. First, an interface or a convention needs to be defined, and then different scenarios can be implemented. The caller does not need to ...
If I communicate to the world via my exposed API that I want a logger that returns an error, then I'm implicitly communicating that I will handle errors returned by that function call. But since there's nothing I can do with those errors, it makes sense for me (again think about ...