- Microservices Development Cookbook
- Paul Osman
- 173字
- 2021-07-16 17:48:27
Evolving your test suite
Having a good test suite in the first place will help tremendously as you move from a monolith to microservices. Each time you remove functionality from your monolith code base, your tests will need to be updated. It's tempting to replace unit and functional tests in your Rails app with tests that make external network calls to your services, but this approach has a number of downsides. Tests that make external calls will be prone to failures caused by intermittent network connectivity issues and will take an enormous amount of time to run after a while.
Instead of making external network calls, you should modify your monolith tests to stub microservices. Tests that use stubs to represent calls to microservices will be less brittle and will run faster. As long as your microservices satisfy the API contracts you develop, the tests will be reliable indicators of your monolith code base's health. Making backwards-incompatible changes to your microservices is another topic that will be covered in a later recipe.
- RCNP實驗指南:構建高級的路由互聯網絡(BARI)
- C++黑客編程揭秘與防范
- 物聯網識別技術
- Spring Boot 2.0 Projects
- Hands-On Industrial Internet of Things
- 物聯網檢驗檢測技術
- 網絡的琴弦:玩轉IP看監控
- 面向云平臺的物聯網多源異構信息融合方法
- Metasploit Penetration Testing Cookbook
- Mastering Dart
- Echo Quick Start Guide
- 通信十年:擁抱互聯網
- Getting Started with Memcached
- 園區網絡架構與技術
- 工業以太網技術:AFDX/TTE網絡原理、接口、互連與安全