How to sync vacation rental icalendar? - calendar

I have a website for vacation rental and I am facing the issue to sync the calendar automatically every day. My website listing's calendar is synced with VRBO, Airbnb, and Booking.Com.
I have successfully synced the calendar manually, but have an issue in updating new bookings automatically every day. let me explain clearly... 
Suppose my website name is myrentals.com, if I got the booking from Vrbo.Com how do I know that a new booking is done in Vrbo.Com.Now I am using a cron job to update the booking every 24 hours.
I have more than 1000 properties so I don't have an issue updating the ical right now, but I am thinking when I will have more than 1 million of listings. at that time I do not think a cron job will work for me.
If I get a notification when the new booking is confirmed on any of the websites I will easily sync the booking/ical.
is there any better way to sync the booking calendar automatically every day?
Anybody can help me please
Thank You

Related

Best way to skip a payment with Stripe Subscriptions (give a free month)?

I am looking to implement a referral program for our app that will gives users a free month off their subscription every time they have a successful referral.
I came across this question Stripe: add free days to a subscription but it is 6 years old so I am not sure if this is still the way to go since Stripe has updated their service and API multiple times since then.
Reading through the Stripe Docs it seems there may be 2 ways to implement:
Use a coupon and apply it against the customer's subscription. (Stripe Subscription Discounts)
Move the date for their billing cycle by 1 month (Stripe Subscription Billing Cycles)
I would imagine this is a common thing. Is there a best practice on how to proceed?
I ended up contacting Stripe customer support and option 1 is the way to go (coupons).
Basically you create a coupon that deducts 100% of the subscription fee and you enable it for 1 month only. This will effectively skip 1 month's payment. It can be enabled manually via the Stripe Dashboard or the API.
Follow this link for more details: Stripe Coupons

Journey Builder sales force data entry for Updates not working

I am trying to use the "Sales Force data" as the entry point to our journey. This is the first time I am exploring this option using the Marketing cloud "Salesforce Data" connector in journey builder.
We need to capture Updates of Contacts in the sales cloud and trigger some action. So we configured the data entry point - Object chosen Contact. Chose Contact Id for "Select who to inject into the journey". Added. Choose the option to capture "Is Updated" and for our criteria chose Lat Modified Date greater then April 1st 2020. Added all contact fields we needed in the Data Extension and saved.
I can confirm that the data extension was created successfully. The journey was activated successfully.
I go to sales force sales and updated the contacts by changing the phone number or Address related fields and save. However I do not see the data flow into the marketing cloud data extension.
If I try the journey with entry point data source Contact inserted - it is successful.
What could I be doing wrong?
Thanks
Regards
Sid
We got help from sales force support - The records we were trying to modify already had a last update date greater than the one set in our criteria. We have to work around this by handling an update scenario in the journey design and creating a synchronized data - to sync contact/account objects in salesforce with marketing cloud every 15 minutes

Refresh Database/server every 60 minutes

How can I keep the server active and update the database every 60 minutes or after some specific time period ?
I am working on a project where the website updates the database per user.
If the user add something to the cart, the stock gets updated.
But if the user does not checkout within 60 minutes, the product gets removed from the cart and the stock gets updated again.
Now the problem : If no one visits the website for say 2 hours, how should I update the server/database ??
In short, how do I keep the server live without the website being visited by any user.
I want to set a timer for the server.
I hope someone understands what I am asking for.
You need to implement time scheduler or a listener which will run at in every 60 minutes, In time scheduler you implement the update database logic.
You can write a background service to perform this task or if you want it to happen through application only, in that case you can use scheduler like Quartz.
Check
JAVA http://www.quartz-scheduler.org/
.NET https://www.quartz-scheduler.net/

Salesforce Send Email before Expiration Date

I would like to send email notification to Clients 1day before it's 30Days Trial Subscription ends based on the CreatedDate. Any suggestions would be appreciated.
Thank you!
Create an Workflow Rule and setup an Email Alert. You can create the Workflow Rule based off of a date and have it send an email template.
Create a Time-Dependent Workflow Action on a workflow rule when the record is created. The Time-Dependent Workflow Actions should be based on the Subscription End Date and should be 31 Days Before Subscription End Date. That way you don't have to worry about it. It'll just happen.
You can always look up pending actions in the Time-Based Workflow page in the setup area
In your question you mentioned the Created Date, if the Subscription end date is a fixed date from the created date that just factor that into the days before, but I think a separate end date gives more flexibility for scenarios such as extending a subscription.

Update Whole Table every 5 minutes

We currently develop a portal in asp.net mvc2 with fluent nhibernate on amazon cloud servers which have lots of user which buying or selling shares. Also they comment every where and make other activities.
Portal is actually behave like multiple portals which we called Community. Our basic statistics based on users activity (buy,sell, comment etc). We have a basic structure called TopUsers. Which we show top user home page for all topics for loggedin community. On topic page we show top users for current topic etc.
Because of a lot of calculation I want to make a top users table. I am waiting for recommentations for this?
Your approach (separate table that gets periodically repopulated) is correct, except for the interval: your users will not be fanatically clicking on your site every minute to see updated stats, so after a certain threshold of data there isn't much point in refreshing your top users this often. Doing it once per day will usually be good enough.

Resources