You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I've been trying for a long time to set up Vulcain with Api Pltform without success. I have the feeling that it is more a Vulain issue as I never found how to make it work through Caddy module.
Here are my steps to reproduce the issue (largely inspired form your demo):
Download Api Platform v3.0.9 release
curl -L https://github.com/api-platform/api-platform/archive/refs/tags/v3.0.9.tar.gz
tar xzvf v3.0.9.tar.gz
cd api-platform-3.0.9
<!DOCTYPE html><title>Maximum waterfall: API Platform X Vulcain</title><script>asyncfunctionfetchJson(url,opts={}){constresp=awaitfetch(url,opts);returnresp.json();}(asyncfunction(){// Load ALL data from the APIconsole.time('download');constconferences=awaitfetchJson('/conferences',{headers: {Preload: '/hydra:member/*/sessions/*/feedback/*'}});// const conferences = await fetchJson('/conferences');// Fetch conferencesconferences['hydra:member'].forEach(asyncconferenceRel=>{constconference=awaitfetchJson(conferenceRel);// Fetch sessionsconference.sessions.forEach(asyncsessionURL=>{constsession=awaitfetchJson(sessionURL);// Fetch feedbacksession.feedback.forEach(asyncfeedbackURL=>{constfeedback=awaitfetchJson(feedbackURL);})})})console.timeEnd('download');})();</script>
With Slow 3G throttling + Disable cache in Chrom DevTools I get the the cascade profile like here on the left:
Is there anything more to do to enable Vulcain?
The text was updated successfully, but these errors were encountered:
No idea, I've tried StackOverflow, Symfony Vulcain dedicated channel and here: no response.
I might be wrong but api platform seems to have definitely abandoned standard PHP distribution in favor of FrankenPHP.
FrankenPHP has Early Hints and HTTP3 implemented and relies on Vulcain.
So I think Vulcain will still be maintained (FrankenPHP seems gaining a lot of attention).
I haven't tried Vulcain features through api-platform+FrankenPHP yet. But I'd like to use Vulcain without having to migrate everything to FrankenPHP.
@dunglas I now you're very busy but could you at least give us hints on what's happening here?
However, we collaborated with the Chrome and Go team to add support for Early Hints in Vulcain. It's supported as of v1.0 of Vulcain. Early Hints work only when HTTP/2 is enabled, and so far only in Chrome.
Vulcain is still maintained both as a standalone Caddy module, as a standalone binary, and as part of FrankenPHP (which uses the Caddy module).
Hi,
I've been trying for a long time to set up Vulcain with Api Pltform without success. I have the feeling that it is more a Vulain issue as I never found how to make it work through Caddy module.
Here are my steps to reproduce the issue (largely inspired form your demo):
Download Api Platform v3.0.9 release
curl -L https://github.com/api-platform/api-platform/archive/refs/tags/v3.0.9.tar.gz tar xzvf v3.0.9.tar.gz cd api-platform-3.0.9
Fix PNPM issue as stated here: api-platform/api-platform#2417
Configure the API to be Fully Normalized
Start the app
Create entites like here https://github.com/dunglas/demo-vulcain-api-platform
Update schema + load fixtures :
Try with this code: (inspired from your demo)
With Slow 3G throttling + Disable cache in Chrom DevTools I get the the cascade profile like here on the left:
Is there anything more to do to enable Vulcain?
The text was updated successfully, but these errors were encountered: