Skip to content

API Monetisation #1478

Answered by Tratcher
GurdipS5 asked this question in Q&A
Discussion options

You must be logged in to vote

YARP doesn't provide this functionality by default, but you could use YARP to add this functionality to an existing application.

Monitization requires two main parts: A) Authentication/Authorization, and B) Reporting.

A) You need to have an authentication and authorization mechanism on every request so you know who to charge, and to refuse requests if their account isn't in good standing. See https://microsoft.github.io/reverse-proxy/articles/authn-authz.html

B) You need to report each request (preferably in batches for perf reasons) to the billing system. This could be done in custom middleware https://microsoft.github.io/reverse-proxy/articles/middleware.html.

You don't need YARP to imp…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by karelz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
Type: Idea This issue is a high-level idea for discussion.
2 participants
Converted from issue

This discussion was converted from issue #1475 on December 22, 2021 17:13.