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

  • Home
  • SEARCH
  • 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 3338726
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T00:24:36+00:00 2026-05-18T00:24:36+00:00

I am currently designing a system where we need to know if the user

  • 0

I am currently designing a system where we need to know if the user is still online/logged in.

The system is a .Net web based, so we intend to do this using AJAX/JSONP code, which pings the server every 2 minutes.

There is a large number of users, so a ping every 2 minutes causes ca. 600 pings per second.

We therefore intend to place this service on it’s own server, and store all information in memory using Velocity.

The cache will be a heirachy of named value pairs, first group then person, and a timestamp for each person.

Question is can we write directly to the velocity cache for each ping? Or will this cause locking? Should we first write to a queue and then update the cache from the queue?

At the same time as we update the cache there will be other users requesting information on a per group basis.

  • 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-05-18T00:24:36+00:00Added an answer on May 18, 2026 at 12:24 am

    I think you should be able to do this if you can change your model to base each cache item around a user as apposed to being a group of users as you mentioned. If you require the ability to query these items by group, you would have to think of a way to keep an index (potentially in memory) of the keys and groups to query items by (the query would obviously be a slow point).

    This would make the likelyhood of you updating the same item at the same time near nill (as each client would only be updating every 2 minutes)

    This would allow you to take advantage of the Optimistic Concurrency Model for velocity as discussed on MSDN on the link below, without losing any data.

    http://msdn.microsoft.com/en-us/library/ee790890.aspx

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

Sidebar

Related Questions

I'm currently in the early stages of designing a system that will end up
I am designing a rule evaluation system which need to handle a fact database
I am currently working on designing my first FPS game using JOGL. (Java bindings
Let's say that I'm currently designing an application where I will need to use
I am designing a simple application using c# and it has a web browser
Background for understanding the question I'm currently designing a simple, light-weight (application-specific) message-based API
I'm currently designing a program that will involve some physics (nothing too fancy, a
I'm currently designing a brand new database. In school, we always learned to put
We are currently designing a website that will be accessed from kiosks in a
I'm currently designing a database for a project. Now I'm debating with myself whether

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.