From fd40fdd085294bd7239231100e490c8679680fe4 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sat, 26 Aug 2023 10:56:26 +0100 Subject: [PATCH] daily-email: add 2023-08-23 Don't use third-party services directly --- src/content/daily-email/2023-08-23.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/content/daily-email/2023-08-23.md diff --git a/src/content/daily-email/2023-08-23.md b/src/content/daily-email/2023-08-23.md new file mode 100644 index 00000000..3e55b975 --- /dev/null +++ b/src/content/daily-email/2023-08-23.md @@ -0,0 +1,19 @@ +--- +title: > + Don't use third-party services directly +pubDate: 2023-08-23 +permalink: > + archive/2023/08/23/dont-use-third-party-services-directly +tags: + - automated-testing +--- + +If you need to integrate your application with a third-party service, don't integrate it directly - even if it has an SDK. + +Doing so locks you into a single implementation and a single vendor. + +If you write your own integration layer, it's possible to add multiple implementations, such as different payment gateways, that conform with a single interface. + +If you need to switch to a different provider or add multiple options, you can without changing the existing code. + +It also makes it easier to test as you can write a fake implementation and use it for testing.