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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T23:14:43+00:00 2026-06-02T23:14:43+00:00

In .NET would there be issues to consider between a static method in a

  • 0

In .NET would there be issues to consider between a static method in a static class and an instance method in a regular class with respect to scalability?

Is there going to be a “log jam” if many many calls are made to a static method in a class? Or is that not an issue. If so, would it be better to use an instance method?

Something like a method like GetCustomers() that is called to retrieve customer data.

EDIT:
The question is not as much about performance of a call to each type of method which has been addressed in other questions/answers, but about scalability. If you have 10K calls per second to a static vs an instance method is the static method going to have problems? Or does it not matter.

  • 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-02T23:14:44+00:00Added an answer on June 2, 2026 at 11:14 pm

    lt really doesn’t matter. What matters is whether or not the method needs access to the state of a specific instance of the class. If not, you can make it static, if not you can’t. If you are asking strictly on a theoretical basis, then assuming the method doese NOT need access to instance state data, then obviously there is a minor advantedge to a static method as you don’t have to create a useless object on the heap in order to use it… If you made it an instance method you would have to create an instance (only ONE instance, since it does not need any state data, which instance, or what the state of the instance is doesn’t matter) – Only ONE instance no matter how many times you need to call it…

    but one instance on a typical sized class is not an onerous hit… assuming this class (type) doesn’t take 3 GigaBytes of heap space !

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

Sidebar

Related Questions

Is there a Maven alternative or port for the .NET world? I would love
in vb.net i would like to draw a regular line on a form. is
Is there any practical difference between the .net decimal values 1m and 1.0000m? The
Platform: .NET Framework 3.5 SP1 on x32 Are there any performance issues regarding leaving
Are there any state saving method that would allow JSF application to intially save
I'm wondering if there is something like Hotswap/HotDelpoy/JRebel (known from Java World) in .NET
In .NET I would use System.Diagnostics.Trace... What would I use in C or C++
in vb.net i would like to change the hue and saturation and darkness of
With C# .NET i would like to DL 2 webpages and find the DIFF
I would like to create a console program in VB.net that would allow parameters.

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.