Never used App Engine before, was always on AWS.<p>Recently for my Andriod app, I thought of giving GAE a try. The app was on Firebase, the only "Server" I needed was to send a push notifications (Downstream). So, I just went "Google Cloud Module" wizard with "Endpoints" option on Android Studio.<p>And created this simple servlet.<p>/<i></i>
* An endpoint class we are exposing
<i>/
@Api(
name = "pushApi",
version = "v3",
namespace = @ApiNamespace(
ownerDomain = "com.example.sample",
ownerName = "com.example.sample",
packagePath = ""
)
)<p>public class MyEndpoint {<p><pre><code> PushBean response = new PushBean();
/**
* A simple endpoint method that takes a name and says Hi back
*/
@ApiMethod(name = "pushToTopic")
public PushBean toTopic(@Named("topic") String topic, @Named("dataJson") String dataJson) {
try{
response.messageTopic(topic,dataJson);
return response;
}catch(Exception e){
return null;
}
}
</code></pre>
}<p>And deployed this on my backend. After 1 month of running in staging (I hadn't published the app yet and I would have called the end point around 1000 times), I got a bill of around $450. It said I had consumed around 8600+ hours of GAE instance. I almost fell of my chair when I saw that. Even if my instance ran all through the month, it could have only cost 720 hours.<p>I am just wondering what happened. What am I missing here? Did I do anything stupid?
Can someone help me?
It sounds to me like you are on Google Compute not Google App Engine. If you are running on App Engine you would have a *appspot.com domain. Unless you setup a domain with App Engine.
You can put a limit on spending. I"ve had a mistake from billing from them that they rectified. I'm sure you've take the step to contact them.