Comments (11)
Interesting, I haven't seen Artax before. Thanks for the suggestion!
I'll work up some benchmarks and see how it compares to Guzzle and raw curl. I've avoided native PHP sockets until now because they are supposed to be considerably slower, but I admit that I don't have any raw data on it. May just be a PHP myth.
Taking advantage of the asynchronous nature of Artax may be difficult, since the library is predominantly serial and blocking. Will have to do some research.
Finally, Artax can never become the default since it requires PHP 5.4 and this library supports down to 5.3. But if it works out, I could easily include it is as an optional connection class which is usable on >=5.4
from elasticsearch-php.
@polyfractal Is there any plan to upgrade to Guzzle 4?
http://mtdowling.com/blog/2014/03/15/guzzle-4-rc/
from elasticsearch-php.
@xreal I had not seen the new release of Guzzle, thanks for the link. I like the direction the library is going!
As it stands, I probably can't make it default for the same reason as Artrax (PHP >= 5.4 ... I get tons of people complaining that I currently don't support all the way down to 5.3.3, alas). But I would love to support it as a drop-in component if you are on a newer PHP. Looks like there has been a lot of work slimming down the codebase, which should probably help the autoloader speed bottleneck that Guzzle tends to run into.
from elasticsearch-php.
@polyfractal A drop-in component for Guzzle 4 sounds great. Hope to seen this some day :)
from elasticsearch-php.
@macnibblet why would you suggest lib that in it's own readme has
IMPORTANT: Artax is still unstable! The API is frozen but things may be broken due to the current lack of testing.
?
from elasticsearch-php.
Speak with the guy who built Artax, he's a friend and very accommodating to any questions you may have in regards to this. @rdlowrey
from elasticsearch-php.
But.. why? If we have to use some lib for this, isn't it better to use lib that is used by as many users as possible, not something obscure?
from elasticsearch-php.
It's a reason to choose Guzzle. I am somewhat bias knowing the creator but I truly believe Artax to be of superior quality. Guzzle simply has better marketing. Quality over quantity.
from elasticsearch-php.
I could care less if you guys use artax, but fyi it's considerably faster than native curl if you plan to do anything other than one request at a time. By extension this means it's also considerably faster than guzzle. My real work involves retrieving millions of http requests per hour. That's why I wrote it. In any case, I'm traveling home from vacation today and can answer any questions you may have (or not) after that.
Cheers from the airport!
from elasticsearch-php.
@FabienO I agree that guzzle is not a great lib, but that's for another discussion.
My point was not to drag any dependencies on obscure libraries into this library. I just don't understand why this lib should have 20 drivers for every curl library possible. Even those 5 that are there here are pretty extreme to me. I think there should the simplest implementation possible, and interface so anybody can implement their own and publish it as a new package.
from elasticsearch-php.
Closing due to age, and no desire to use alternative backends at this point in time :)
from elasticsearch-php.
Related Issues (20)
- Aye
- Requiring `guzzlehttp/guzzle` causes roadblocks HOT 2
- $es_client->index($params) Response nginx 405 HOT 1
- Elasticsearch behind Proxy Server HOT 2
- Response object is empty after logging
- Logs are not sent in Laravel queues when use async log HOT 2
- Changelog for latest version 8.10.0 HOT 1
- Path in hosts configuration is ignored HOT 2
- check the index exsists ,it have a error HOT 1
- Connecting to Elasticsearch v8.x using the v7.17.x client HOT 1
- Received a 403 Forbidden error when attempting to index HOT 1
- `Response\Elasticsearch::offsetGet()` return type declaration HOT 2
- Need a new Release 6.8.3 HOT 4
- ServerError was not handled correctly. HOT 2
- Add support for Elasticsearch with Bulk API and data stream HOT 1
- How to pass specific characters password to ElasticSearch through Sulu/ArticleBundle HOT 5
- [Request feedback] Looking for feedback about the UX experience
- Calling static trait method ... is deprecated HOT 1
- Inquiries about version use HOT 2
- [Proposal] Add a mapTo(class) function for map ES|QL response into objects HOT 1
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 elasticsearch-php.