Microservices application on Heroku free plan - heroku

Whether it's possible to create application consists of some microservices on Heroku free plan when I have only 1 free dyno?
Is it correct each microservice has to be deployed as 1 Heroku app? Does it mean it's possible to run only 1 Heroku app on 1 dyno or I can run may Heroku apps (many microservices) on 1 free dyno?

Related

Dyno Hours for paid account and Frequency to call app endpoint

I am new to Heroku, created an app and deployed on heroku free account. And I want use endpoint of that app as publicly accessible endpoint. In heroku documentation it is mentioned heroku API can be called for 4500/hour. I am confused that will this limitation will be applicable to publicly accessible endpoint also?
and how much dyno hours do we get for the standard account/paid account ?
The Platform API is meant for developers who want to programmatically manage the applications (create/destroy Dynos, etc...). Here the max 4500 calls per hour applies.
There is no rate limit on the endpoints (or applications) you develop and expose to the users. The only limitation is the quota in case you use the Heroku Free tier.
Paid plans do not have restrictions: Dynos are always running but they do restart every 24hrs anyway (see Heroku Restart policy)

Why Doesn't heroku dyno consume with worker?

I use heroku worker for free plan to deploy my twitter bot and I make it work all day, but my dyno doesn't be consumed(I checked Account settings/Billing/Free Dyno Usage).
Please teach me why it is?

Cooperating applications on heroku

I plan to have two physical applications on heroku that cooperate as one logical application. One app is written in Grails, the other is node.js.
I have a question on the technical feasibility of this on heroku:
Can these applications share the same postgres database? (or will
heroku prevent this?)
Thanks,
Bob
I will answer my own question based on info found on the Heroku development site.
To share a database (after it's been "Added On" to the first application.
heroku addons:attach app1::DATABASE --app app2
Where app1 is the Heroku application that created the database and app2 is the Heroku application with which to watch it.

Is it possible to run two applications on one hobby dyno?

I have $161 platform credits on heroku from GitHub student pack to spend for one hobby dyno:
The Heroku offer is for one (1) free Hobby Dyno for two years, which will be applied on your invoice as a discount of $7 for a Hobby Dyno.
I already deployed one spring app and changed its dyno to hobby. My question is if there is a way I could deploy second Java app and set it to use the same dyno which is assigned for the first app?
Right now I have one app which has hobby dyno and one app which uses free dyno. I read on the internet and people say that there is only one app allowed for one dyno and Heroku will charge me for the second one but there is also this thread How many apps are allowed on a 'Hobby' Heroku plan? which says that I can have more than one app per hobby dyno.
So what's the truth?
No, you can't run multiple apps on a single dyno.
Heroku's model is to run one app per dyno (and often many dynos for a single app). The question you reference discussed the Hobby plan¹, asking how many dynos can be run per account. Keep in mind that Heroku's model is different from the shared or VPS hosting you might be used to. Dynos don't provide an OS that you can put apps onto; they run apps directly.
¹Technically I don't think this makes a ton of sense since accounts don't have these kinds of tiers. One account can run free dynos, hobby dynos, and professional dynos. But there is a difference between unverified accounts, which can run up to five free dynos, and verified accounts which can run many more.
According to this article on the heroku page it is possible but not recommended.
Heroku post

how many dynos i need for my application with Heroku?

we want to migrate my application to Heroku acctually we have 3 applications related and we want to move to Heroku. But we don't know how many dynos we need for deploy those applications. wether 3 applications in the same dynos and make a copy in other dynos or for each application one dynos? thanks for your help.
If they are 3 separate applications you will need a minimum of 3 dynos since each Heroku application will need to run a dyno.
As to how many dynos each of your application needs to run that all depends on how busy each site is and how long requests take to process.
I can only speak for Java and an embedded server/container. In this case you actually could deploy more than one app into your container (which will be startet from your dyno), only using one dyno.

Resources