A method comprising: receiving, at a segment routing as a service, SRaaS, application, a configuration of an internet protocol environment defining the routing, forwarding, and/or paths used for a first virtual machine and a second virtual machine in the internet protocol environment, wherein the configuration is generated using an interior gateway protocol and represents a layer 3 environment, wherein the interior gateway protocol provides at least one of Routing Information Base, RIB, details, link costs, interior gateway protocol metrics, router capability, and shortest path to infrastructure points; after receiving the configuration, receiving, at the SRaaS application, a parameter associated with a workload of a tenant; based on the configuration and the parameter, generating, at the SRaaS application, a tenant-defined layer 3 overlay for the internet protocol environment and tenant-defined layer 3 overlay segment routing rules that define how to route data, using segment routing, between a first node and a second node corresponding respectively in the tenant-defined layer 3 overlay to the first and second virtual machines; implementing, by the SRaaS application, the generated tenant-defined layer 3 overlay segment routing rules by modifying an existing set of rules for segment routing between the first virtual machine to the second virtual machine, and receiving feedback associated with an application of the tenant-defined layer 3 overlay segment routing rules, the feedback comprising rates of change on one or more factors within the environment and/or specifically related to the workload, and selecting a time based on the rates of change in which to dynamically modify the overlay and adjust the segment routing of the environment such that an updated version of the tenant-defined layer 3 overlay segment routing rules is generated. receiving, at a segment routing as a service, SRaaS, application, a configuration of an internet protocol environment defining the routing, forwarding, and/or paths used for a first virtual machine and a second virtual machine in the internet protocol environment, wherein the configuration is generated using an interior gateway protocol and represents a layer 3 environment, wherein the interior gateway protocol provides at least one of Routing Information Base, RIB, details, link costs, interior gateway protocol metrics, router capability, and shortest path to infrastructure points; after receiving the configuration, receiving, at the SRaaS application, a parameter associated with a workload of a tenant; based on the configuration and the parameter, generating, at the SRaaS application, a tenant-defined layer 3 overlay for the internet protocol environment and tenant-defined layer 3 overlay segment routing rules that define how to route data, using segment routing, between a first node and a second node corresponding respectively in the tenant-defined layer 3 overlay to the first and second virtual machines; implementing, by the SRaaS application, the generated tenant-defined layer 3 overlay segment routing rules by modifying an existing set of rules for segment routing between the first virtual machine to the second virtual machine, and receiving feedback associated with an application of the tenant-defined layer 3 overlay segment routing rules, the feedback comprising rates of change on one or more factors within the environment and/or specifically related to the workload, and selecting a time based on the rates of change in which to dynamically modify the overlay and adjust the segment routing of the environment such that an updated version of the tenant-defined layer 3 overlay segment routing rules is generated.