I ma working on a use case where i need to act on every new measurement received by a device and do some calculation .
I am trying to build microservice and find a suitable example on git hub given by Software AG .
“realtime example in cumulocity-microservice-templates”
I meant over here , i will create my onw application but use the existing onMicroserviceSubscriptionAddedEvent and registerForMeasurementUpdates
logic.
Can i use the same one and put my calculation code only or do i need to developed similar subscription logic in my own class including all other work it is doing. like
tenant validation , token
I have few questions. It will help me in implementing my solution better.
Can i filter out this notification on the basis of of device_type like
type= “xyz_raw”
fragmentValue = “xyz_raw”
I have 100 device , out of 100 , 50 belongs to “xyz_raw” type and 50 belongs to some other type.
This will reduce my listener load.
will it be able to handle 50 different measurement/sec for same device as the device is having 50 measurement.
Some documentation about properties file and cumulocity.json – so that i can understand it better
like in properties file
use of
C8Y.microservice.isolation=MULTI_TENANT
C8Y.bootstrap.initialDelay=5000
C8Y.bootstrap.register=false