Implement Recurring Meetings

I am working on a (slightly more than) meeting management app. I want to implement recurring meetings (as in every week, every day, etc). I am not quite sure how to go about it though. Should I just store a start time, duration, and the interval and simply derive it when I need to? Or should I store a start time, end time, and duration and have some form of scheduled event that actually updates the DB? Maybe something else entirely? I do also need some other actions to be done after a meeting finishes. I'd love some suggestions on how to tackle this. (Am on t3 stack)
29 Replies
Neto
Neto3y ago
create multiple records on the database Nov 07 | 09:00 - 10:00 Nov 09 | 09:00 - 10:00 Nov 11 | 09:00 - 10:00 as an example
iDarkLightning
iDarkLightningOP3y ago
Yeah so essentially the second thing I said, right?
Neto
Neto3y ago
yes
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
iDarkLightning
iDarkLightningOP3y ago
I was considering using https://mergent.co/ and just scheduling tasks
Mergent
Schedule background jobs & crons with Mergent's powerful APIs. Your first 1,000 tasks/mo are free.
iDarkLightning
iDarkLightningOP3y ago
not necessarily sold on this particular service, but it seems to be capable of doing everything I need it to do
Leonidas
Leonidas3y ago
Sounds like the use case for a custom cron job + job queue, take a look at quirrelJS: https://quirrel.dev/
Job Queueing for Serverless
Quirrel makes job queues simple as cake. Set up in 5 minutes - even works locally!
Leonidas
Leonidas3y ago
Quirell needs to be self hosted, if this is not desired use a service like aws sqs or mergent On Aws a docker image on ec2 is all you need to get started, the local dx is also great. You have a custom panel where you can easily inspect pending jobs and cron events and manually fire them to test in development
iDarkLightning
iDarkLightningOP3y ago
Thanks for the suggestion I'll look into it
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
iDarkLightning
iDarkLightningOP3y ago
I've come to the essential problem of programming where I don't entirely know what to call each instance of a meeting Naming shit is so hard
Leonidas
Leonidas3y ago
For production usage i would recommend to add a job queue as a middle man, to ensure alls jobs are completed (error fallback, retries)
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
iDarkLightning
iDarkLightningOP3y ago
No like what is it
Leonidas
Leonidas3y ago
Thats why i like QuirellJS. Combines these 2 things neatly.
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
iDarkLightning
iDarkLightningOP3y ago
Like what I do call the concept of the instance of a meeting
Leonidas
Leonidas3y ago
And reliablity. In case you send emails to upcoming events you want to make sure these are actually sent out, even when your server has crashed or is updating or whatever else could happen in prod
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
splitfire?
splitfire?3y ago
are you trying to make something 100% proprietary like is it a requirement? why not use something like zoom that has recurring meetings built in and get info from zoom's api? i was playing around with a similar concept earlier this year and got pretty far doing that was just testing it out cuz my boss wants to build something like that with recurring meetings later
iDarkLightning
iDarkLightningOP3y ago
It's more for managing the participants at an event/meeting
splitfire?
splitfire?3y ago
ah ok maybe i misunderstood meetings with actual calls with people and not just plain meetings as like a scheduling thing only
Leonidas
Leonidas3y ago
And keeping your sanity when debugging issues
iDarkLightning
iDarkLightningOP3y ago
Wait sorry, I'm a bit confused here, are they saying it can be deployed to vercel?
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Leonidas
Leonidas3y ago
The project is open source. The team was hired by vercel to build a similar service for them. Hope to see it soon
iDarkLightning
iDarkLightningOP3y ago
It does need to be deployed on a server though, yeah?
Leonidas
Leonidas3y ago
Yes. They created a hosted service to monetize it in a fair way. But since they apparently are no longer interested in the business aspect of it that they are shutting it off. The project can still easily be used via docker and is a breeze to work with. I can highly recommend it.
iDarkLightning
iDarkLightningOP3y ago
Gotcha
Want results from more Discord servers?
Add your server