Better HN
topnewbestaskshowjobs
Log inSign up

anirudhrx

12 karma · joined Sep 22, 2019 (7y ago) · 28 submissions

Submissions

1.

Rethinking integration testing in the age of coding agents(thenewstack.io ↗)

3 points · by anirudhrx · 6mo ago · discuss

2.

Fixing my writers block using OpenClaw(foxish.me ↗)

2 points · by anirudhrx · 8mo ago · discuss

3.

Shadow Testing: a low-effort approach to solve microservices integration testing(thenewstack.io ↗)

2 points · by anirudhrx · 1y ago · discuss

4.

Setting up tenancy-based ephemeral environments using a service mesh(thenewstack.io ↗)

2 points · by anirudhrx · 1y ago · discuss

comment 1y ago · link · parent

Excited to see this! Congrats on the launch.

6.

Rest API Testing Using Relevancy Weighted Diffs(signadot.com ↗)

1 points · by anirudhrx · 1y ago · discuss

7.

Why Staging Doesn't Scale for Microservice Testing(thenewstack.io ↗)

2 points · by anirudhrx · 2y ago · discuss

8.

Cutting the High Cost of Testing Microservices(thenewstack.io ↗)

6 points · by anirudhrx · 2y ago · discuss

9.

Scaling Ephemeral Environments with OpenTelemetry and Service Mesh(thenewstack.io ↗)

3 points · by anirudhrx · 3y ago · discuss

comment 3y ago · link · parent

I just use Goodreads to keep track of what I read so I can go back and see some highlights from certain kindle books that I've semi-forgotten. I dislike their goals in terms of "books/month" and "books/year" - which IMO emphasizes entirely the wrong aspect of reading and makes a meaningless quantitative assessment! Reddit for recommendations works way better.

comment 3y ago · link · parent

Sorry if I'm not using the right terminology here. By layers, I'm talking about the different places from where you're emitting spans - like in your example, the UI, prompt-embedding, vector-store and context-encoding. What I was curious about was two-fold - one whether there are use-cases that make sense to have experimentation of the kind that allows a user to swap out a particular step in that stack - and second about making use of context propagation like baggage enables in OTel.

comment 3y ago · link · parent

Congrats on the launch! This is really cool. Would love to see OTel integration in the future. I'm curious if this might eventually work with request-context based routing, i.e. being able to use the propagated metadata between layers to dynamically test different versions of the stack, replay requests / route to specific underlying implementation versions at different levels of the stack.

comment 3y ago · link · parent

Hah! this was cool to discover.

14.

Show HN: Developer Environments Using Istio and Kubernetes(signadot.com ↗)

1 points · by anirudhrx · 3y ago · discuss

comment 3y ago · link · parent

This is an interesting issue that I've also seen across many companies - often even leading to low usage of these slow-to-bring-up environments. At relatively smaller scale, I can see physical infrastructure-based isolation being effective to solve it - with the stack coming up relatively quickly, but at larger scale (even 30+ microservices), I think an approach that uses logical / request tenancy is also worth considering - similar to https://www.uber.com/blog/simplifying-developer-testing-thro....

comment 3y ago · link · parent

Thanks for the question. Anirudh here. Firstly, there isn't always a need to isolate everything by default - in some cases, the testing being done may / application layer entities may already provide the isolation necessary.

However, there are cases like needing to test a schema change for example which can't be done at the application layer. For those cases, there's a DAG-based resource plugin (https://www.signadot.com/docs/resource-plugin-overview) framework that we built, that acts like a lifecycle hook associated with each sandbox - running containers when the sandbox is created & destroyed.

What the platform teams do to provide isolation is to write plugins that set up isolation for the sandbox as needed. The isolation is often logical tenants (as opposed to being at the infrastructure level) like a new schema / table / etc, and includes some of the data seeding / restoring a snapshot type of operations. We have some examples already of different plugins and are writing more.

comment 4y ago · link · parent

Thank you! :)

comment 4y ago · link · parent

Thanks for the kind words!

comment 4y ago · link · parent

Makes sense. I have seen a couple of instances of this pattern - with service dependencies being stitched together using configuration. Thanks for sharing!

comment 4y ago · link · parent

Ah, the primary use-case here is for developers to test microservices as changes are made to them - so one would typically be running this setup in pre-production / staging only and no prod user data would be involved. I would think of it as a way to run integration / e2e tests for each commit or pull request. Running these tests in the high fidelity test environment constructed this way reduces the bottlenecks on staging environments, and bugs are discovered / addressed sooner.

comment 4y ago · link · parent

I was just about to post this :)

Depending on the request context (typically a set of headers), a request will end up going to one of baseline service A or A’, but never both. Depending on the scenario being tested, you can choose to isolate additional stateful components. In the case of testing a change to the database itself (DDL, etc), you’re right in that the database must be isolated so that A’ does not talk to the same shared database as A. So, as you pointed out, typically this would involve using a resource plugin (https://docs.signadot.com/docs/using-resources-with-sandboxe...) to set up that new database shard (or table, or schema) that is isolated as part of the test sandbox environment, and then linking A’ to talk to that isolated instance instead.

Kafka is on our roadmap next! We're actually working right now on making custom resource plugins easy to write, because invariably with databases, there's a data seeding step that's pretty custom for users. Right now, for building a custom plugin, aside from writing the logic in the provision / deprovision scripts (for ex. https://github.com/signadot/plugins/tree/main/src/mariadb), there's a bit of docker image building and helm packaging needed that we're hoping to simplify.

comment 4y ago · link · parent

Thanks for the question. At a high level, vcluster and sandboxes can be used to create environments within k8s. The approach we take with sandboxes is different in that it optimizes these environments for testing in high fidelity and without having to deploy a full isolated copy of the entire application which doesn’t scale well. As I understand it, vcluster shines where isolation is important right down to the k8s control plane and networking, but one would still typically deploy every workload into a vcluster in order to realize a test environment. The scaling considerations that apply to deploying the entire application into a K8s namespace (or real cluster) would also carry over to the use of vcluster.

comment 4y ago · link · parent

Thank you! We're really excited about covering the entire dev lifecycle using this approach. Re: routing, do you make use of a library that is directly included in each service? We've seen an approach in the wild where such logic is embedded into gRPC interceptors and HTTP middleware. Curious to hear how you thought about the choice between that and using the mesh.

comment 4y ago · link · parent

We've been working on some concept docs at https://docs.signadot.com/docs/concepts. Please let me know if it could use more detail on anything!

comment 4y ago · link · parent

Thanks! The biggest lesson for us has been in finding the balance between being opinionated v/s being flexible in the abstractions we build. I think it's easy to go too far in either direction but we're learning as we build about how to make these decisions better.

For example, there were 2 different versions of the sandbox creation APIs that we built in the past - one that optimized for docker image-driven workflows, and another that designed for the sandboxes being immutable, but our current APIs are document-style and mutable, giving additional flexibility to build more use-cases on top like feature testing.

26.

Kubernetes Sandbox Environments using request level multi-tenancy(signadot.com ↗)

1 points · by anirudhrx · 4y ago · discuss

comment 6y ago · link · parent

> Lastly, you might argue that you shouldn’t increase your consumption with your net worth, but I would counter that some lifestyle creep can be highly rewarding in terms of maximizing your leisure time and long-term life satisfaction.

I don't agree with this. I think life satisfaction is a function of what you think you need rather than what you really need. Changing that perspective can create as much contentment with existing resources as increasing consumption. For example - no one misses what they never knew they could have. Very few people come up with a _necessity_ for a private jet from first principles.

comment 7y ago · link · parent

Liveness probes are used by the kubelet to restart the underlying container and are independent of the deployment object. This has come up before in https://github.com/kubernetes/kubernetes/issues/57187 but sadly, isn't possible yet. Your best bet is to create a new pod and hope for repro, or one way might be to have a configmap that is mounted into the pod that contains a debug flag that your liveness probe also looks at - i.e. "debug == true || curl localhost:6789". Not a clean solution but may work for the interim.