Bridging PHP and Dart with Protocol Buffers: Notes on Seamless Model Generation

I have a backend service written in PHP and a client mobile app. I want to share the code of a model class that describes the payload of a push notification. How can this be done? Can I avoid code duplication? As you may already know, there’s no direct way to share code implmenetation bewteen a backend and a client app if the two are written in different languages. However, there are strategies you can employ to minimize code duplication....

August 7, 2023 · 6 min

Simplifying Microservice Testing with Imposter: A Step-by-Step Guide to Mocking OpenAPI Services

Abstract Mocking third-party services is challenging due to their external nature, complex APIs, and dynamic behavior, making it difficult to replicate their responses accurately during testing and development. When you develop some services or apps that depends on third party services on which you don’t have control, mocking is the way to go. In this blog post, we explore the powerful combination of Docker and Imposter to create dynamic, scriptable mock services based on OpenAPI specifications....

August 4, 2023 · 3 min