hey peeps question: are all of the sdk asynchronou...
# support
a
hey peeps question: are all of the sdk asynchronous ? php ?
m
Hey There! 👋 Your message has been received by the RudderStack team. We will forward this request to your Technical Account Manager, and they will get back to you shortly. Please use the thread for any additional comments.
Hey Jose, for the PHP SDK you can use the Fork Curl consumer to send asynchronous batch request. The default is synchronous batch requests using the Lib Curl consumer. See docs . Also you can change between these 2 when calling the Rudder initialize function. In this function you can set the "consumer" key to "fork_curl" instead of "lib_curl".
a
how can i set this "fork curl" in the client initialization ?
Never mind, just caught that
m
:)
a
when setting the consumer to fork_curl, stuff is not being sent to rs
not even after flushing
set the queuesize to 10 , and flush at 10
did launch a bash script to push 100 events
is there any php example using fork_curl ?
m
Oh ok. Let me check this and get back to you.
a
??
m
I have posted to the team and they said they ll take a look and revert
Hey Jose can you share the website where this is happening?
a
??
is an internal webapp (php)
i generated the code to track events
when running in prod server, some events won't reach rudderstack
m
when running in prod server, some events won’t reach rudderstack
What does that mean?
You are not sending some of the events to RudderStack in Prod?
a
if i hit the php page 100 times, i will expect to get 100 tracking events
but i'm not getting them all tho
m
Oh ok. How many events are you seeing?
a
about 20%
it was not a load test, so it was not a burst
m
Can you show me a demo of this and I can share with the team?
a
just hit a php page and that's it
nothing special about this
as for fork_curl, i could not get it to work
m
So is it like you travel across 100 pages as a user and then see only about 20 page calls?
Oh ok. But I still would like to see a demo, if you are free sometime?
a
that can be arranged
m
You can pick a time here . Let me know if these hours don’t work for you and I can extend it.
Also with the fork_curl did you see any errors? You can set `debug: true`⁣ in the SDK to see the errors.
Copy code
Rudder::init(<WRITEKEY>, [
    'data_plane_url' => <DATAPLANE_URL>,
    'debug' => true,
    'consumer' => 'fork_curl',
    'error_handler' => $error_handler,
]);
g
@shy-kite-21035 As mentioned by @agreeable-zoo-22266
no error on my logs
the debug flag is on but is not producing extra info
on my local dev env all events seem to be sent
once i push the code to the server, i get 20% of events pushed to rudderstack
logs are not showing any extra stuff
Let's keep the conversation here so we all have complete context of the issue without repeating the info in DMs. Thanks
m
Oh ok. 👍