Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7972533
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T07:53:39+00:00 2026-06-04T07:53:39+00:00

So I have this web app that in theory may one day become a

  • 0

So I have this web app that in theory may one day become a for-pay application – if anyone actually finds it useful and worth it.

I have all the logic to handle payment, check to see if the account is overdue etc. in place. It is all stored in RavenDB (RavenHQ actually) – not that this should matter to the question at hand.

Now, I am trying to follow best practices, and I want my application to be performant, i.e. not micro-optimizing, but I want to do things in a way that will scale relatively well with load (if it takes off it will be hosted – I would love to not have to pay for more servers than is strictly necessary).

My app uses something close to the default login/account model. Users log in securely using forms authentication over https.

At what point should I check that a user is actually allowed (with regards to payment status etc – a domain model concern really) to be using the web application? Consider that this will mean requesting a single document from the RavenDB backend and checking if the current payment period has expired.

Should I:

  • Check every time the user logs in, and make them unable to “Remember me” for more than x hours, where x is a relatively small number?

  • Check in a few central controller actions that the user would visit relatively often – the application would essentially be severely restricted if these actions were not available.

  • Do a global action filter that checks for every request, then redirects to the “Pay nooooow!” page as soon as stuff expires?

  • Another option?

RavenDB does clever caching, so I don’t think a request for this document would kill performance, but should the application really take off (unlikely, but one can dream), an extra database request per http request will probably lead to Ayende hunting me down and mercilessly beating me. I don’t want that.

It seems to me like this is something that others would have thought about and solved, so I am asking – what would be the right way to handle this?

Thanks for any insights!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T07:53:40+00:00Added an answer on June 4, 2026 at 7:53 am

    I don’t think this is a framework issue strictly, it’s more like how you want your site to behave and then use framework to support it. Generally speaking you want to make the site usable and not too restrictive unless when that’s necessary, e.g. surfing the site with no restriction whatsoever, but checking out should be done very securely.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have used this tutorial from Google to build a web app that finds
This a bit of strange one.... We have an internal web app that runs
I have this c# web app that relies heavily on two dll files that
I have a SQL query in my ASP.net web app that looks like this:
So I have this php web app, and one of my folder contains some
I have a web application running on Windows IIS. This app has a database
I have this web app that is running ASP .NET MVC 1.0 with LINQ
I have this .NET web app that draws a table in Page_Load. Then after
I have a web app that prints reports, most are just one page, or
i have an asp.net website http://www.site.com . This web app is also running on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.