問題文
A media company is moving a video transcoding service to Heroku. The service has an HTTP front end that accepts upload requests and a long-running component that encodes files. An architect must explain how these two responsibilities map onto the platform's execution model. Which statement is correct?
選択肢
- Each responsibility is declared as its own process type, and a process type is the prototype from which one or more dynos are started, so the two can be scaled independently.
- Both responsibilities run in one dyno, and the number of dynos only controls how many copies of the whole application exist.
- The encoding component is declared as a process type, but the HTTP front end is configured outside the application because the routing layer needs its own declaration, and its capacity is therefore adjusted on the router.
- Both responsibilities must run inside the same process type, because an application is allowed only one entry point and the platform starts that entry point on every dyno it creates for the application.