Hey guys - I must be doing sth wrong. I have cal s...
# developers
b
Hey guys - I must be doing sth wrong. I have cal setup on vercel, and it’s crazily slow. • first loading of the availabilities • then the form UI to go through the booking is that happening for you as well? What can I do? Thanks! Example here: https://meet.tocco.earth/baptistedebever/30min
p
it’s around 4 seconds on my end
@Emrysal do you think this could be the same cold boot problem we had earlier?
I do agree, routing is quite slow
but only first time
afterwards its fast
definitley worth investigating. opening a ticket
b
Thanks @Peer - appreciate the hustle here!
Looking fwd to hearing back!
p
will do
b
Any alternative server you’d recommend me to look into?
m
FWIW I'm having a similar issue using the embed on my wordpress site I'm creating. Response times for https://app.cal.com/api/trpc/viewer.public.slots.getSchedule?batch=1&input=%7B%220[…]999Z%22%2C%22timeZone%22%3A%22America%2FLos_Angeles%22%7D%7D%7D have taken 10 seconds plus for my October availability. I've seen as slow as 25 seconds
Doesn't seem like a cold boot for me, I saw one request fast in my tests after a few tries but most have been very slow 10s+
p
@Baptiste Debever, We are also deploying cal.com on our infra. Can you tell me how much time it takes to deploy the app on vercel? Right now we are going with traditional AWS way.
b
@Matteo Hoch what are you looking at as fallback?
15s to build @Prateek Kumar
p
@zomars @Emrysal @Hari @Bailey
m
@Baptiste Debever I'm hoping it's an easy fix or something I can fix on my end by self-hosting. I like the cal.com model
b
Same - @Peer do you have any insights into how are others doing?
ping @Peer
u
hey @Baptiste Debever currently @Emrysal is working on this issue. we would inform you if we find some solution for this problem.
e
@Baptiste Debever we're currently working with Vercel to investigate this issue; it's due to a cold start issue - they're currently looking at our stale development environment and investigating. Hope to share more info as we learn more.
b
Thanks - but just to clarity, what are the alternatives you’d reocmmend?
e
At the moment the best way is to set up a custom server with pm2 and run yarn build on the instance. It's not ideal however and we're working on changing this situation.
b
I see - clearly not ideal
a
Hi @Emrysal Is there any progress on this issue? Our embedded calendar take 10-20 seconds to respond. It happens the first time, and sometimes happens on subsequent calls. We’re self hosting on Vercel.
Obviously we can’t release to production without this being solved and it’s been a month
p
any update on this issue? facing the same problem, seems to be very slow.
p
we have a task force right now to investigate this
can you all verify that you are NOT using CalDav?
it could potentially be a slow caldav client
p
not sure what caldav is, mine is just a self hosted endpoint in vercel. Also do you have an ETA, wont be able to release it until its reasonably fast.
p
@Prolok Nair can you send me the link that is slow? and potentially create a user account for me
n
Hi - has there been any movement on this? We just setup a new instance on verel + supabase yesterday and its also unbearably slow (have pro account, not using CalDav)
cc @Augusto Samame @Baptiste Debever @Peer @Emrysal
a
We were never able to fix it using Vercel
So we're using Vercel for staging, and for prod, we spun up a Node.js AWS EC2 instance. Works just fine there
p
interesting