Live data from Hacker News

Gor – A simple http traffic replication tool written in Go

github.com

21–24 of 24 posts

Re: Gor – A simple http traffic replication tool written in Go

#21
I have always wanted to use such a tool and this one looks good from a cursory glance.

But what I have always wanted to know how people actually use these properly. There are two problems that I see in replicating production traffic to staging/dev

1. Changes in application structure url/parameter. I think given the change we make per release, we will get a lot of error. How to gracefully handle that?

2. Our application is write heavy so there is a lot of new content. So the majority of the requests will access content s that don't exists in the staging/dev environment. We can't even use live replication of DB either since we usually have a lot of DB changes also.

One solution I can think of is record today's traffic. Take a DB snapshot at the end of the day, replicate DB, run migration and then replay. Still has to deal with app change. Am I missing something or this is really challenging. I can see how this will perfectly work though for infrastructure change like server software or configuration.

On a side note of the blue/green deployment. Theoretically the reversible DB migration/parallel deployments of old-new version sounds good. But how many people can make this possible? Does most app has little DB changes from release to release. I will hazard a guess that if we try to implement such things the cost of such complexity will easily overshadow the actual changes to the app and most likely add severe risk of bug. But people seem to be doing it, again not sure what I'm missing.

Re: Gor – A simple http traffic replication tool written in Go

#22

Eek... that's a rather unfortunate name choice. The "Gor" saga is an infamous series of books spanning the past 50 years, basically the sci-fi/fantasy equivalent of "Fifty Shades of Grey". https://en.wikipedia.org/wiki/Gor https://www.google.com/search?q=gor&biw=1920&bih=947&source=...

"There are only two hard things in Computer Science: cache invalidation and naming things." -- Phil Karlton http://martinfowler.com/bliki/TwoHardThings.html

No more talk about hard things please. This is a family show.

Re: Gor – A simple http traffic replication tool written in Go

#24

This is super cool. You know what I'd really really like even more? Store this info somewhere, and let me replay it at a later time or date. Maybe I want to replay a whole day's worth of data at an accelerated rate to see if my servers can handle it. It also opens up the ability to do data forensics to try and reproduce a bug, perhaps. Thanks for this!

It appears to have that support. # write to file gor --input-raw :80 --output-file requests.gor # read from file gor --input-file requests.gor --output-http "http://staging.com"

Shit, this changes everything.
Post reply on HN