@@ -146,6 +146,8 @@ Steps to implement server side emulation logic:
- Add new handler for `/api` and `/user-api` endpoints for Swagger UI
- Remove `/sandboxname` before each endpoint in the _routes_ if it appears
- Import the `AdvantEDGE/go-packages/meep-metrics` package and add the `MetricsHandler()` handler function for the metrics for Grafana dashboard.
> Other MEC services in AdvantEDGE can be referred to for implementing the above changes.
3.**Create the service handler file**
@@ -168,9 +170,11 @@ Steps to implement server side emulation logic:
6.**Implement SBI Communication Logic**
The new MEC service will need to communicate with South Bound services to, for example, get updated scenario information. To do this, create a `server/sbi` folder and create a `<mec-identifier>-sbi.go` file in it. Implement all the communication and initialization related logic of SBI (South Bound Interface) in this file. This will include communication with the message queue and Redis cache from where it will obtain the necessary information.
The new MEC service will need to communicate with other AdvantEDGE/Sandbox services to, for example, get updated scenario information via South Bound Interface (SBI). To do this, create a `server/sbi` folder and create a `<mec-identifier>-sbi.go` file in it. Implement all the communication and initialization related logic of SBI in this file. This will include communication with the message queue and Redis cache from where it will obtain the necessary information.
Instances of the necessary SBIs will then be created and their initilization triggering logic implmented in the `server/<mec-identifier>.go` file for the service to communicate with and receive information from them.
Initialization of the SBIs and logic for receiving information from them will need to be implemented in the `server/<mec-identifier>.go` file. Communication with SBI will be initiated as soon as the MEC service (or service pod) is up and running.
> Other MEC services in AdvantEDGE can be referred to for implementing the SBI communication logic.