Join Slack
Powered by
What are the advantages of using a build service v...
# community-support
m
Martin
12/04/2024, 5:09 PM
What are the advantages of using a build service vs a static instance?
v
Vampire
12/04/2024, 5:32 PM
Scope
Vampire
12/04/2024, 5:33 PM
Build service is scoped to once execution of one build
👍 1
Vampire
12/04/2024, 5:33 PM
Static state survives in the daemon JVM and can even influence builds of totally different projects run in the same daemon
Vampire
12/04/2024, 5:34 PM
This caused many serious problems with Spotbugs which used to be called in-process, and heavily overuses static state.
Vampire
12/04/2024, 5:34 PM
So in short, never use static state, but at most for constant values.
m
Martin
12/04/2024, 5:35 PM
👍 I see, thanks!
👌 1
Open in Slack
Previous
Next