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 7759867
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T13:44:05+00:00 2026-06-01T13:44:05+00:00

I am building a server back-end for a mobile social network using Windows Azure.

  • 0

I am building a server back-end for a mobile social network using Windows Azure.

I have these 3 entities:

  1. Users – Stored in SQL Azure
  2. Threads (sort of relations between 2 users which are then able to send messages to each other) – Stored in SQL Azure
  3. Messages – Stored in Azure Tables

As I store Messages in Azure Tables partitioned by Thread ID I expect good performance when chatting (sending/reading Messages to/from Threads).

But I also need to be able to provide users with a list of the most recent Threads (recent = contains the most recent message). In other words I need to order Threads by the last message date when displaying.

Scanning many different table partitions and looking for the messages will obviously be performance killer, so I need to somehow denormalize data to other table partitions to be able to fetch the most recent threads efficiently.

What based on your experience is the best strategy?

  • 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-01T13:44:06+00:00Added an answer on June 1, 2026 at 1:44 pm

    Edit: after further thinking, here is a better suggestion (I think):

    Have one Message ATS table. This table will house two types of messages: messsage sent and message received.
    Each time a user sends a message, store it in the table as “Sent” and then as “Received” (or whatever you want to call those types).

    Partition all of the messages in the Message table by the following:

    (UserId) – PartitionKey, (long.Max – Timestamp.Ticks) – RowKey

    As extra properties you can store ThreadId, Sent/Received differentiation, etc.

    If you want to guarantee that your message is inserted twice w/o problems, use Queue’s and a Worker role.

    This scheme partitions everything by the user. You would be able to display all of the messages to/from that user within a time range and always descending.

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

Sidebar

Related Questions

I am building a website using Asp.net with C# and back end support is
I'm building SaaS application where back end will be SQL Server and WCF Services.
I'm building an XML-RPC server using Twisted which periodically checks if the timestamps of
I am building a client side application that will use a SQL Server back
I'm building a Google App Engine web app, with a Java back end, that
I'm building an HTML5 application (with ASP.NET back-end) and i want to develop it
I'm building a front-end content editing module for my own framework using a WYSIWYG
I am building a dynamic query as a stored procedure in SQL Server 2008
I am building a very simple asp.net application that will have a SQL Server
I am building a javascript front-end and a Rails REST API backend. Users can

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.