Comments (2)
Hi
So sorry about the silence: I wasn't aware you had raised an issue. Somehow I didn't get an email. I need to check my settings...
The reason for saving cassettes early was to ensure they exist. I also suspect there were causality reasons but I don't remember exactly what off the top of my head.
I'll try and have a look into this in the near future.
Regards!
from govcr.
Hi @andersthomson ,
Could you give more context about the need to keep cassettes in memory?
govcr
works by recording a request the first time it is made and replaying it after that.
In practice, this means that govcr
executes requests a lot faster than plain http because it acts as a cache. You only incur a save the first time a track is recorded.
Are you only making new live requests? In such case, you might be misusing govcr
and not matching your requests properly (the doc, the cookbook and examples show how to deal with request matching).
If by nature you need your requests to be executed live all the time, govcr
is just not needed. Perhaps you're using gvcr
to record requests (and not replay)? I'd recommend you just implement your own custom http.Transport
, as you will get better performance: govcr
implements a rule parser which would be needless if what you want is a plain recorder (in fact, Go already has that in the test packages).
from govcr.
Related Issues (10)
- Comparing to https://github.com/dnaeon/go-vcr HOT 1
- HTTPS requests recording HOT 5
- Using govcr as audit tool HOT 2
- json: unsupported type: func(... HOT 6
- Remove "Path" from cassettes HOT 4
- Handle concurrent roundtrips better HOT 2
- Ability to remove sensitive information from responses HOT 1
- Version tags don't all work with Go modules HOT 13
- Wrong Response Request Body HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from govcr.