Hello,
Additional apache web server or java processing maybe kind of over loading Raspberry Pi. My proposal will be an application running as service (daemon) and serving all requests to see status of RFID Reader status (idle, reading, etc), last read ID information and such.
Advantages of a specific application can be:
- It will be lightweight.
- Can be easily controlled delaying between readings.
- There will be no problem of serving multiple web requests. That application will be multi-threaded.
- Can be used on different Raspberry Pi hardware like Zero.
- Can be used on different Raspberry Pi OS like Jessie, Stretch.
- If needed information read can be saved in a database of choice (on sdcard/on LAN network/in the cloud, etc.)
- No need to do a lot of configuration file settings. Application can install itself as a service in the OS (need root access and a specific parameter for that).
I have Raspberry Pi 3 Model B and Raspberry Pi 3 Model B+ both. Worked on them both.
Just recently, I've completed a long running project on Raspberry Pi 3. It is waiting university thesis acceptance (software developed by me recording a lot of surgery details and reducing after surgery processes). Dealing with lots of sensors, two different database systems, licensing over internet. Has complementary PC software and communicating with it over network or by USB memory stick. All communication information transferred in secure (crypt).