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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T20:39:29+00:00 2026-05-10T20:39:29+00:00

If you were to build a badge system similiar to how SO does it,

  • 0

If you were to build a badge system similiar to how SO does it, would you put the logic/business layer in the database directly (via stored procedure, scheduled sql jobs) or put it in the server side?

From what I can think of, you have to:

  1. list badges that pertain to the current user action
  2. check if the user has a badge already or not
  3. insert badge for user

Potential options

  1. business logic in the web application that calls stored procedures etc.
  2. stored procedures ONLY
  3. sql server job that runs every x minutes
  4. windows service that runs every x minutes

Would a combination of these be required? I think it would since some badges are based on milestones for a given question, maybe a batch job is better?

Update

A system where you can modify the badge system, then re-run the entire badge linking for everyone would be even better. i.e. say you change the logic for some badges, now you have to re-apply it to all the questions/answers/votes/etc.

interesting problem to solve!!

  • 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. 2026-05-10T20:39:29+00:00Added an answer on May 10, 2026 at 8:39 pm

    I would recommend putting all business logic in the business layer. I recommend this for a few reasons:

    • Keep the business logic in one language / place
    • Scalability – You can partition data, implement different caching mechanisms, etc.
    • Seperation of concerns – let your DB do what it does best…store data, let your programming language make decisions on that data.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We build a system that handling the billing analyse and what it does it
I build a composite widget and would like it to have it's own accelerators
i build that class using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI.WebControls;
I'm trying to build a custom StackOverflow badge using JSONP and MooTools. Here is
To build a secure system, can we assume that encryption guarantees integrity is true
We build complicated console-based tools that produce a lot of commentary on the console.
I build a parsing algorithm using NSXMLParser. Im having doubt as to what is
I build a project in C#. From another project I have 5 DLLs. Is
my build is a 3 step process. run ant to build. transfer war to
I build a website, that: reads data from a website by HttpWebRequest Sort all

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.