Hello @Walid.Yahia ,
the Raspberry PI is used in many IoT projects. Still, it is running a generic OS (eg. Raspbian Linux) on a CPU.
This combination must be considered inadequate for real-time data acquisition (it depends on the interval in milliseconds of the 'sender').
If you want to collect real-time data (eg sub-millisecond accuracy), you need to combine the RPi, with another device running an MCU (eg. an Arduino or ESP).
The data acquisition is done on the MCU device and data is sent in batches (so we can 'slow down') to the RPI over an I2C/SPI bus.
So, if you know the interval of the data communication, you probably know when you need to go for this extra MCU device.