from pubsub docs
Retains unacknowledged messages in persistent storage for 7 days from
the moment they were published.
is there a way to keep messages in subscription longer than 7 days?
didnt find in thr APIs & services in the Google Cloud Platform Console.
There is currently no way to persist messages in Google Cloud Pub/Sub for more than 7 days.
Related
My service sends messages to users, and I want to throttle on the following criteria; Saying a user A belongs to group G.
max 5 messages within last hour to user A
max 100 messages with last hour to members belong to group A
The number of messages and floating window size are configurable.
Any recommended options?
Is Cloud Endpoints an option?
Apigee is too expensive for our service.
More Background:
use app engine standard environment python2.7
the request is internal; a app engine service send request to another app engine service
Thanks in advance.
You can use API Gateway with App Engine instead of Apigee or Cloud Endpoints API Gateway quotas, it provides support for Python 2.7 and supports quotas like the ones you need.
I have a piece of code, based on NodeJs, that does not serve any HTTP request, but monitors some online systems and sends report emails.
This code is run by a shell script and keeps running 24x7.
Which Google Cloud offering is best suited to host this?
I tried with App Engine, but after one hour of console inactivity, the console exists and the script stops running.
I am not sure if Compute Engine would be best for this. I can host this in AWS EC2, it would work there... but wondering about Google.
Any tips appreciated.
Thanks
This can be done with a simple Python app running in App Engine Standard Platform. See this post for details.
If you're able to modify it so it can run periodically you could run it on AWS Lambda with a schedule as trigger and use SES to send out e-mails.
Alternatively, if you have control over the "online systems", you could use CloudWatch custom metrics and create alerts based on the thresholds of your metrics.
If you must use Google Cloud, you could use Google Cloud Functions instead of AWS Lambda, and Google Cloud Monitoring / Logging.
The second version of Google Cloud Functions can run for up to 60 minutes (thanks to Google Cloud Run).
To sum up on GCP:
Google Cloud Functions 1nd: 9 mins
Google Cloud Functions 2nd: 60 mins
Google Cloud Run: 60 mins
Google App Engine: 10 minutes (Automatic scaling) and 24 hours (Basic scaling)
Google Compute engine : infinite (you manage the VM)
I want to integrate Google calendar with my existing iOS app on App store. I will be using the Google iOS SDK and calendar APIs. I know I need to be a google developer and use developer console. My questions are,
What do I need to know regarding licensing etc?
What are the charges applicable in terms of subscription, API usage? Are these charges on yearly basis?
Where can I find info related to these?
If you want to know the licensing, billing and others, then this Cloud Platform Console Help can help you with it. You will learn here all you need to do about Billing and Payments.
On February 23rd I received an email that they are turning down the App Engine Admin Console and moving to Cloud Platform Console, then on February 25th I received this in email:
Your Google Cloud Platform project(s): MY_PROJECT_ID [Project Number(s):
MY_PROJECT_NUMBER ] has/have been in the billing disabled state for more
than 200 days. All related Google Compute Engine resources are
scheduled to be deleted in as soon as 7 days.
If you take no action within 7 days, you will be unable to recover any
resources under Google Compute Engine in this project. If disabling
billing was unintentional, please follow the online instructions and
re-enable billing for this project within 7 days to avoid the project
clean up.
I received this for just one app and I have no idea what is going on. I'm nowhere near exceeding free quota on this app, I get less than 100 visits a month.
By reading their new billing pages I see that they still have free quota, so why would they delete my app and why just one out of four apps that I have?
The email does not say that they are deleting your App Engine app. They will be deleting Compute Engine resources associated with this app.
You do not need Compute Engine for App Engine. You may not be using Compute Engine at all and may have started some Compute Engine resources by accident.
...and on the next day they wrote...
The email quoted below was sent to some Google Cloud Platform
customers in error.
If you do not use Google Compute Engine, you can safely ignore that
message. We apologize for any confusion this has caused. We received
feedback from many customers who do not use the Google Compute Engine
service (for example, they only use Google App Engine). Your Google
App Engine apps will continue to operate normally, and you do not need
to take any action at this time.
Thanks, The Google Compute Engine Team
I started using Php runtime for hosting my wordpress blog on Google app engine.
I have a bit of confusions over the "Overview" chart that I am seeing.
According to "Running Wordpress guide", the cron job is getting triggered every 2 hours. But I haven't finished the migrations yet so I removed that scheduler to save money. Nobody knows my Google App engine URL.
As you can see "APIs" chart, there is no more requests.
But in "App engine" chart, "Cloud SQL" chart and "Read/Write operations" chart, you can still see some activities that happens regularly. Is there any scheduler or back-end job (except the 2 hours cron job that I disabled already) that makes those requests?
Google costs me around USD 1.* after setting up about four days ago.
What does the App Engine logs say?