Mo

Mock Service Dependencies in K8s Clusters, No K8s Experience Required

Hacker News

Mock Service Dependencies in K8s Clusters, No K8s Experience Required

Hi HN! I’m Mia, a product manager/engineer at Skyramp ( http://www.skyramp.dev ) building tools that make it easy to test microservices in-cluster. As a team of engineers with experience building cloud-native solutions at both startups and big co’s like VMWare, we are deeply aware of how frustrating it can be for devs to test their microservices in-cluster. One of the problems that has come up consistently as we have talked to developers is that of mocking service dependencies in a cluster. We narrowed down the problem to two use cases: Case 1: A company partners with third party service providers to get data (for example, market data for a fintech company) and has to deal with test versions of those third-party services in their pipelines. The SLAs for these “Test Nets” are non-existent and result in flaky tests. In addition to the flakiness, devs cannot rely on these test networks when they have to run load tests. In each case, there is some amount of work involved in mocking out the dependency so the work never gets done. Case 2: If a developer (particularly someone working with gRPC) wants to isolate their microservice for debugging an issue in-cluster, they will need to work with Kubernetes networking (fun for some of us, not for others :) ) and then deal with tons of boilerplate code to get it working. We figured that we would start small and reduce the toil in getting in-cluster mocks going, so we created Mocker - an in-cluster mock server for gRPC and REST. You can use Mocker either via the CLI or as a VSCode extension ( https://marketplace.visualstudio.com/items?itemName=skyramp.... ). These clients rely on our Worker that is deployed in your cluster via Helm. You can create mock configurations by simply pointing Mocker to your OpenAPI spec or your .proto files. These configurations are pushed to Worker which takes care of the networking inside the cluster to seamlessly help you switch between the mock and live versions of your dependency. We’ve also built an OpenAI integration which can help you generate realistic mock data so you’ve got one less thing to worry about. To sum it up, here is what you can do with Mocker: 1. Automatically create mock configurations: Simply point Mocker to the API file and get going! 2. Turnkey Mock Values: Mocker auto generates mock values that you can edit as needed. The CLI version has support for OpenAI generated mock values. 3. Complex mocks via Javascript support: Simulate dynamic mock responses for complex test cases by pointing to a Javascript file with the behavior. 4. gRPC Proxy: For gRPC services, Mocker acts as a proxy that allows you to selectively mock a subset of the methods in an endpoint, while directing others to the live service in your cluster. 5. VSCode Extension for a streamlined UI based experience designed to keep you in your workflow. 6. Coming soon: Out of the box support for generating latencies and error codes for testing failure cases. We still have a lot of work ahead of us but would be grateful for any feedback or suggestions. If you want to follow our journey and see what else we are up to, sign up here: https://www.skyramp.dev . Thanks, Mia

Share card

Actual performance

4points
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Indie HackersFits the IH revenue-focused audience · Strong signals: created · Missing: supports, reddit linkedin, podcasting
87%87% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Product HuntOn track for Day 1 leaderboard · Strong signals: visual, openai, code · Missing: mac, agents, macos
76%76% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
TrustMRRLess likely to generate early MRR · Missing: mobile apps, ios, personal
46%46% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
Hacker NewsMay not resonate with HN audience · Strong signals: exist, ide, pipe · Missing: https docs, excited, just released
45%45% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
AppSumoMay struggle as an AppSumo deal · Strong signals: soon · Missing: plus, platform, intuitive
32%32% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Strong signals: arr · Missing: mrr, revenue, profit
11%11% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

Mo
Mock Interview Service28%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Mock Interview Service

Hacker News1
Gi
GitLedger Resubmission – HITL Required38%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

GitLedger Resubmission – HITL Required

Hacker News2
Heedd
Heedd42%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Customer experience as a service with free tooling.

Indie Hackerscommitment-side-project
A
A test service to mock slow api; responding to get and post29%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A test service to mock slow api; responding to get and post

Hacker News1
Ca
CareerCipher – A Mock Interviewing Platform53%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

CareerCipher – A Mock Interviewing Platform

Hacker News4
On
OneDayLunch - Simple Dating Service (register required ;( )47%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

OneDayLunch - Simple Dating Service (register required ;( )

Hacker News1
Mo
Mock your API32%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Mock your API

Hacker News2
Se
Service to Mock APIs, generate custom data32%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Service to Mock APIs, generate custom data

Hacker News2
An
An Attack on Titan Experience Made with ThreeJS42%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

An Attack on Titan Experience Made with ThreeJS

Hacker News2
Voen
Voen48%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Contactless dining experience.

Indie Hackerscommitment-full-time