'Find or produce data streams for simulations in RESTful API Web Service

at the time of this post, I am creating the roadmap for my MSc thesis based on RESTful API Web Services by using Java Spring Boot. The scope of my thesis goes around IoT devices and the data being produced by them and then making simulations to extract results, back to the clients.

In order to do so, I need to find a way in producing data in the input of my service for the aforementioned simulations to take place.

Can anyone give me a suggestion about approaching this issue? Should I create a separate app for the data stream creation?



Solution 1:[1]

you can create a synch service with a cronjob or something.

@Configuration
@EnableScheduling
@EnableAsync
@Service
public class SynchService {

@Scheduled(cron = "0 0 * * * ?")
private void synchSomething() throws IOException {
        
    }

}

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Shoxious