扩展 API 独立性:大型微服务环境中的模拟、契约测试和可观测性.pdf
1、Scaling API IndependenceMocking,Contract Testing&Observability in Large Microservices Environmentstl;drMicroservices promise team independence,fast flow and happy engineers.But reality is often very different-flakey environments,high-effort to configure dev/test setups,lost time,slow builds,frustrat
2、ion.API mocking or simulation can help solve these problems but requires some additional techniques to work well at scale.Hi!20+year career software developer whos done a lot of system integration.Creator of WireMock open source.CTO and co-founder of WireMock,Inc.,maker of WireMock Cloud.https:/ Str
3、ategiesProcess and gatekeepingRestrict access to environments.Create strict gating criteria for test deployment.Accept wait times.SSOCustomer profileInventoryBookingsSearchFavouritesCustomer profileInventorySearchBookingsFavouritesAppTEST ENVIRONMENT 1(AND ONLY)Lots of environmentsOne environment pe
4、r team or small group of teams.Expensive.Operationally complex.High cognitive load-teams must know a lot about other teams services inner workings.Smart environmentsEphemeral environmentsRemocalOnly works for modern microservices-no solution for COTS,3rd party APIs and legacyRequires small footprint
5、,highly operable services with consistent header passingSSOCustomer profileBookingsSearchCustomer profileInventorySearchBookingsFavouritesAppSHAREDLOCALMocks/simulation/virtualisationSolves for modern services and COTS/legacy/3rd party.Requires understanding of external interfaces of dependencies bu
6、t not internals.Not a free lunch-requires engineering effort and development of skill using the tools.AppMock SSOMock Customer ProfileMock InventoryMock SearchMock BookingsMock FavouritesNot adequately simulating real behaviour,lead to tests falsely passing and masking issues that manifest in produc





点击查看更多