Author name: Hari Krishnan

Hari Krishnan is a Polyglot Full Stack Developer, Architecture Consultant, XP Coach and Trainer, with over 18+ years of experience. He has worked across multiple tech stacks and application architectures. His domain exposure includes investment banking, network security, telecommunications, logistics and retail. Apart from building products, he has extensive experience in coaching developers, quality specialists, architects, and technology leaders. He has advised several organizations including unicorn startups and large enterprises on their transformation strategy.

Pact’s Dependency Drag​: Why Consumer-Driven Contracts Don’t Support Parallel Development

Exploring the challenges and limitations of using Pact for contract testing in a microservices environment.  In the domain of microservices, ensuring seamless communication between different services is paramount. This necessitates robust contract testing to ensure that APIs and their consumers are in sync. With an increasing number of organizations adopting microservices, tools like Pact—a consumer-driven […]

Pact’s Dependency Drag​: Why Consumer-Driven Contracts Don’t Support Parallel Development Read More »

WireMock’s Dirty Secret: Ignoring API Specs & Letting Invalid Examples Slip Through 

Overcoming the Challenges of Hand-Rolled Mocks with Contract-Driven Development  APIs and microservices have transformed the way software systems are built and maintained. However, developing a system that relies on multiple services—both internal and external—presents unique challenges, especially when some services are not fully available. In this critique of WireMock, we examine the critical importance of

WireMock’s Dirty Secret: Ignoring API Specs & Letting Invalid Examples Slip Through  Read More »

Specmatic Docker Image now available

Specmatic is now available as a Docker image! Turn your API specifications into executable contracts in seconds. Your favorite features such as contract tests, intelligent service virtualization, backward compatibility testing and more are all available through Specmatic Docker image. Getting started has never been easier. Get the Docker Image Now: https://hub.docker.com/r/znsio/specmatic Getting started in 5

Specmatic Docker Image now available Read More »

JDBC stubbing with Redis and Specmatic contract testing.

Break the Chains of Database Dependencies: Leveraging Specmatic for JDBC Stubbing

With Specmatic JDBC stub, you can easily test APIs without the need for a complex database setup. By switching out the real database with a Specmatic JDBC stub, we can set expectations for the stub to respond to specific queries. These expectations can be recorded based on actual interactions. Once the expectations are set, we no longer need the database for our tests!

Break the Chains of Database Dependencies: Leveraging Specmatic for JDBC Stubbing Read More »

Comparison of Specmatic and Spring Cloud Contract.

Comparison: Specmatic vs Spring Cloud Contract

With Spring Cloud Contract we can start by authoring the API contract in one of the supported DSLs, based on which the provider / producer is verified and in the process stubs are generated for consumers. This makes it possible to leverage it as both a “consumer driven” or “provider driven” contract testing tool. There are also some interesting points about how we share contracts and stubs (through artifact managers, source control, etc.) with Spring Cloud Contract. Let us look at the detailed comparison between Specmatic and Spring Cloud Contract. Please do leave a comment if there are other areas of comparison on which you would like to see additional details.

Comparison: Specmatic vs Spring Cloud Contract Read More »

Specmatic vs Wiremock comparison

Comparison: Specmatic vs WireMock

API mocking is only effective if the mocks are truly representative of the provider / services they are emulating. Deviations between mocks and providers can lead to integration issues much later in the development cycle. In order to avoid such issues it is important to keep in mind that selecting an API mocking tool is not an isolated decision. It has to be in line with your overall microservices development, testing and deployment goals.

Comparison: Specmatic vs WireMock Read More »

Specmatic vs Pact & Pactflow comparison

Comparison: Specmatic vs Pact.io and Pactflow.io

Specmatic and Contract Driven Development differ significantly from Pact. We built Specmatic out of our own necessity where Pact did not fit the bill for us. We have tried to cover as many areas of comparison as possible, however we would love to hear if you have any other criteria on which you would like to see additional details.

Comparison: Specmatic vs Pact.io and Pactflow.io Read More »