I decided to implement filtering on the frontend only.
I learned that the implementation of filtering feature, in theory, sounds simple. In practice, it is not. it requires to think a lot about the pros and cons of backend and front end implementation based on how your product works and how the users use it.
For example, if you anticipate thousands of users filtering at the same time, a backend solution would add a lot of load to your service and probably cost. A front end solution means less load to your service but it could offer a poor UX if your user has thousands of products to filter.