Thursday, 16 March 2017

Strategy behind Booking / Appointment / Events with Node

I have been looking at this problem for just over a week and I am having a real tough time with what direction to pursue.

I am using Ionic2(Angular2) & Firebase.

Part of the application is the ability for users to create an Event. The most useful piece of information here, is that the Event will occur on 24th December at 9:40am in 2018 (for example). Assume that Recurring and other advanced functionality may be required in that vein.

Here is what I have considered.

  1. Use Node, and use a Google Service Account perhaps, listen to when firebase database changes, and then process that into a google calendar. Blind hope makes me believe I can get a "Callback" out of that in December.
  2. Use Node, but use a scheduler. Maybe this would work. I have seen some Schedulers for Node, but I feel my options are limited. I need PERSISTENT tasks. Meaning that, I don't lose everyone's events if my server crashes. However, solutions I have seen are using either Redis or Mongo and they appear to have their issues, generally semi abandoned.
  3. I don't think cron was intended for this task, someone suggested this in my google search, but is that not cleaning the windows with a hammer?

Where do I go with this for a basic booking app?



via Clark

No comments:

Post a Comment