How does the server count the number of http requests

  java, question

Helloļ¼

For example: How does the server count the number of http requests

The requirement scenario is:

Cloud platform (server side) needs to count http requests from different IP addresses to various API interfaces.

The solution I can think of:

1. Use javaweb filter to judge and distinguish these IP and requested API interfaces one by one, and save the database.
 (PS: I can do this, but I think it's a bit silly to do this)
 2. Can nginx or other services be used for statistics, judgment, induction and archiving?

Learn about ELK and use kibana to view and monitor it.