becquerel
becquerel
CC#
Created by private_wire on 12/17/2024 in #help
GC Troubles
unfortunately i've never used graphql directly, so i don't know enough to say if you're doing anything wrong here - apologies
8 replies
CC#
Created by private_wire on 12/17/2024 in #help
GC Troubles
i'm guessing you have a .Take() call somewhere on this graphql object?
8 replies
CC#
Created by private_wire on 12/17/2024 in #help
GC Troubles
i'm also a GC noob though so don't take this as authoritative
8 replies
CC#
Created by private_wire on 12/17/2024 in #help
GC Troubles
in the same way you can easily construct a normal IEnumerable which is infinitely long
8 replies
CC#
Created by private_wire on 12/17/2024 in #help
GC Troubles
I would imagine it's a combination of this being self-referential and it also being a lazily-enumerated enumerable ('TakeUntilPredicate')
8 replies
CC#
Created by Pieter on 12/16/2024 in #help
Mock UserManager in unit tests (Student)
If your class depends on something that is not easy to run in a unit test, and not easy to mock, you should consider introducing a wrapper interface + class which your SUT uses instead
4 replies
CC#
Created by Vernon on 12/15/2024 in #help
How to Improve Long API Call Response Times?
which i can go into more detail on if it interests you
14 replies
CC#
Created by Vernon on 12/15/2024 in #help
How to Improve Long API Call Response Times?
you can use RabbitMQ for this, or, if you would prefer something simpler that stays in-process, a simple combination of a Channel<T> and a BackgroundService
14 replies
CC#
Created by Vernon on 12/15/2024 in #help
How to Improve Long API Call Response Times?
if the user doesn't need to actually get a result back, and they're just triggering something to happen behind the scenes, then yes this works very well
14 replies
CC#
Created by Vernon on 12/15/2024 in #help
How to Improve Long API Call Response Times?
Would using something like RabbitMQ or a similar message queue allow the task to run in the background and update the database once it's completed?
14 replies
CC#
Created by Vernon on 12/15/2024 in #help
How to Improve Long API Call Response Times?
to tell the user directly when their result is ready you might be able to use webhooks, but i've not looked into them myself
14 replies
CC#
Created by Vernon on 12/15/2024 in #help
How to Improve Long API Call Response Times?
and you either return a 'not ready yet' message or their result
14 replies
CC#
Created by Vernon on 12/15/2024 in #help
How to Improve Long API Call Response Times?
so GET /calculation?x=32&y=45 returns a token (some GUID or whatever) and then later they GET /calculation/status?id=[whatever]
14 replies
CC#
Created by Vernon on 12/15/2024 in #help
How to Improve Long API Call Response Times?
which they can then use to check back in later at another endpoint
14 replies
CC#
Created by Vernon on 12/15/2024 in #help
How to Improve Long API Call Response Times?
for an asynchronous API, when the user issues their GET or POST request (or whatever), the endpoint doesn't return them the result, but instead a ticket or token representing the operation
14 replies
CC#
Created by Vernon on 12/15/2024 in #help
How to Improve Long API Call Response Times?
speeding up your actual calculation is difficult to give advice for without knowing more
14 replies
CC#
Created by Vernon on 12/15/2024 in #help
How to Improve Long API Call Response Times?
either you speed up your actual calculation, or you make the API call asynchronous for the user
14 replies
CC#
Created by Vernon on 12/15/2024 in #help
How to Improve Long API Call Response Times?
there are many ways to deal with this
14 replies
CC#
Created by HiveMynd on 12/14/2024 in #help
Unidentifiable Crash with ASP.NET
some security policy in firefox interacting poorly with asp.net core
130 replies
CC#
Created by HiveMynd on 12/14/2024 in #help
Unidentifiable Crash with ASP.NET
the fact that ticking 'do not ask again' fixes it is a very strong clue i feel like
130 replies