|
|
|
|
|
by mikekchar
2664 days ago
|
|
I'm not quite use how unit testing can be easier. Instead of stubbing a function call, you have to stub a TCP/IP request. If you think of a "microservice" as a library that runs in a different process and whose dispatch mechanism is via TCP/IP, you can pretty easily see that testing a library is easier. It's even more easy if your library is compiled with a language whose types are statically checked because you can guarantee that the library functions match the types of the calls without having to jump through hoops like gRPC. |
|
Structurally you can still use a mono-repo for all your deployed functions so that they can eve share some test functionality.