Which floor is better for service restriction?

nginx has its own current-limiting feature. Similarly, current-limiting can also be done in the service, and it can also be done in api gateway. With so many solutions, where is it more appropriate to do current-limiting?

Feb.06,2022

you can refer to this component: https://github.com/2388386839.


gateway layer. This is the outermost layer, and this is where current restriction is most appropriate.


it must be the gateway layer that pulls nginx

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b32349-2b649.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b32349-2b649.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?