Developing a Service policy
As noted in Chapter 5, a Service policy is specified by the software developer in terms of Properties and Constraints as a set of requirements needed to run this service. It’s important to note that the service policy is optional, and the initial needed values are automatically provided by Open Horizon.
Let’s look at the sample service.policy.json
file that you created when you ran the hzn dev service new
command in Chapter 8 to create various template files. The name of the file isn’t fixed, so you can rename or use a different filename as needed for your project:
{ "description": "a policy for your service", "properties": [ { "name": "prop1", ...