Cracker
Cracker
CC#
Created by Faker on 4/13/2025 in #help
Trying to log database operations into file and insert values into db using ef core at same time
Stream and log data you have separated things. You use stream to write text to file. Whatever you write is depends on your needs
12 replies
CC#
Created by Faker on 4/13/2025 in #help
Trying to log database operations into file and insert values into db using ef core at same time
You can share the filestream instance but it probably won't work well on multi thread environments or concurrent operations
12 replies
CC#
Created by Faker on 4/13/2025 in #help
Trying to log database operations into file and insert values into db using ef core at same time
There might be better ways to implement pooling so take a look at that separately
12 replies
CC#
Created by Faker on 4/13/2025 in #help
Trying to log database operations into file and insert values into db using ef core at same time
You can have a in-memory pool like ConcurrentBag to put logs into and a single consumer can read and write into text file from the pool. It can do like bulk write into file once the count is like 50 or whatever is proper for you
12 replies
CC#
Created by Faker on 4/13/2025 in #help
Trying to log database operations into file and insert values into db using ef core at same time
It's not possible to write into the same file concurrently
12 replies
CC#
Created by ВВассралман on 4/12/2025 in #help
how to verify me One Time Password? (i'm making login logic)
Okay if it's one instance then in-memory is fine
11 replies
CC#
Created by ВВассралман on 4/12/2025 in #help
how to verify me One Time Password? (i'm making login logic)
If it's long time (more than 8hrs maybe) then I would use database
11 replies
CC#
Created by ВВассралман on 4/12/2025 in #help
how to verify me One Time Password? (i'm making login logic)
Redis can be used in that case. And the verification email should be shortlived as well
11 replies
CC#
Created by ВВассралман on 4/12/2025 in #help
how to verify me One Time Password? (i'm making login logic)
If you have more than one instance of server where you backend is running then MemoryCache is not correct choice
11 replies
CC#
Created by ВВассралман on 4/12/2025 in #help
how to verify me One Time Password? (i'm making login logic)
What do you do after validating the email ?
11 replies
CC#
Created by Thalnos on 4/10/2025 in #help
✅ Help with an Algorithm on time intervals
Maybe consider concurrence
5 replies
CC#
Created by Alp on 10/2/2024 in #help
C# backend vs Java backend
Backend development Java vs Backend development .net/C#
23 replies
CC#
Created by Alp on 10/2/2024 in #help
C# backend vs Java backend
Kankam LinkedIn 🙂
23 replies
CC#
Created by mer on 10/1/2024 in #help
Dealing with HTTPClient metrics
Try http_client_request_duration_seconds_count instead, see if it matches your expectation
5 replies
CC#
Created by mer on 10/1/2024 in #help
Dealing with HTTPClient metrics
that would explain the graph which the pattern like one request at a time and its done in a short period and repeats
5 replies
CC#
Created by mer on 10/1/2024 in #help
Dealing with HTTPClient metrics
"currently active on the client" so its not the total request per some time
5 replies
CC#
Created by mer on 10/1/2024 in #help
Dealing with HTTPClient metrics
No description
5 replies
CC#
Created by Hound on 9/20/2024 in #help
Approaches to get around a big codebase
this way I was able not have to compile whole project and dependencies, just the project I want to debug and change
6 replies
CC#
Created by Hound on 9/20/2024 in #help
Approaches to get around a big codebase
Not sure if its relevant to your case but I used to have that one huge project. I needed to debug some part of if. I could host that project by copy host files from server to my local IIS, then I build the project that I want to debug, I build the project, copy output dll/pdf files to IIS folder and I can attach to debug, make changes and commit
6 replies
CC#
Created by Davaaron on 9/12/2024 in #help
Build order with dotnet build ...?
okay so there is no direct reference between that two project
40 replies