App
One of the main settings of App is the option to view advanced logs for debugging/troubleshooting in the microservice. You can partially enable by adapter or “Debug=true” mode to affect the entire project.
Use this configuration mode to investigate possible problems in the application. If you are using containerized you will additionally have a list of all the variables received.
In this item we can also configure the Multi-Tenancy feature for SaaS (Software as a Service) applications and the Idempotency feature.
|
|
In the example below, we’re detailing the default App settings grouped into General, Tenancy, and Idempotency.
App | — |
---|---|
License | Devprime License Information |
Debug | Enables Verbose Debugging on all services (True/False) |
DebugWeb | Enable Debug only for the Web Adapter (True/False) |
DebugState | Enable Debug only for Adapter State (True/False) |
DebugStream | Enable Debug for Adapter Stream only (True/False) |
DebugServices | Enable Debug for Adapter Services only (True/False) |
Tenancy | — |
Enable | Enable Multi-tenant / SaaS Support (True/False) |
Type | Sets up the Tenacy strategy |
Gateway | Tenacy Gateway Url |
Cache | Configures a State service for persistence |
Idempotency | — |
Enable | Activate the Idempotency service (True/False) |
Alias | Configures a State service for persistence |
Duration | Sets the duration of Idempotency and protection against duplicate records |
Flow | Define the type of Flow (Backend or Frontend) |
key | Set a required key in the head of the request with the Flow “Frontend” |
Scope | Configures the performance of Idempotencia (All or Web or Stream) |
Action | Defines whether the Idepotency will be automatic or manual (Auto or Manual) |
Additional Considerations:
- When using the “Frontend” flow, it will be mandatory to enter a key in the header during the request in the API.
- By configuring the scope, you limit the performance of Idempotency to a specific context.
- When configuring the action as manual, it will be necessary to define directly in the code which item will have the Idempotency, either in the API or in the Stream.
YAML example with application settings:
To export the configurations as an environment variable and use in Kubernetes, run the command in the Devprime CLI:
dp export kubernetes
|
|