Alerin
❔ How to verify data according to DDD, SOLID and Clean Architecture?
I own in two places one IF, it is:
According to the above rules, how not to duplicate the condition? I would like to avoid a problem in the future where we change something in one place and forget the other.
My code:
13 replies
❔ The application is available worldwide
I need to create an application that will be fast in different regions of the world.
I want to use asp.net blazor version wasm for this, how should I make the server low ping in each region?
How to make a database? Common for the whole world or base per region? Are there any ready-made solutions? Unfortunately, when I tested cloud azure, with a large number of queries to the database, the time is 40ms, which reduces the performance of the application.
28 replies
❔ Own map with the possibility of embedding points.
Hi, I'm looking for a library that in blazor will allow me to create my own map (with my own background) and place points on it. I'm making a map with locations for an mmo game, do you know something like that?
6 replies
How the cache is stored
Hi, what kind of cache library do you use?
How to solve the problem of multiple keys?
Here is a similar problem:
https://stackoverflow.com/questions/59103206/how-to-cache-an-object-with-multiple-keys-in-c-sharp
The solution is interesting, but it makes the cache constant and can overflow (no expiry date of the item)
21 replies
Search for text and sort by most hits.
I wrote a function like this, it looks for words in the database. I would like to make it sort by the most hits. If the article finds 20 words that we entered, it will display in front of the article with, for example, 10 hits.
Anyone have an idea how to do this?
1 replies
Access list when creating an account
I'm creating a login system, I need an access list in it. Who can I allow to log in and who can I refuse.
My model:
If the data in the database is a regular string, there is no problem finding it.
The problem starts when I want to do a regex.
For example: we have a username, we can do e.g. fuck, fuuck or some variation of it. (I'm not strong in English).
It would be nice to do it with regex, now the question is how to search for such data in the database? Also, won't the regex become very slow at some point? The plus is that we search short phrases (max 320 characters).
8 replies
Microsoft.Data.SqlClient.SqlException (0x80131904) Invalid object name 'Stand.Identity.Role'.
6 replies
Storage of telephone numbers in a database
Hi,
I want to log in via e-mail and telephone number.
How to store the phone number?
I was thinking about code + number phone, unfortunately I have a problem with detecting what is a number and what is a code.
The user has one input, if the system detects that he has given his phone number, he must add a code depending on the culture.
There are a few problems:
1.) The user must enter the telephone number code each time
2.) When he enters the phone number alone, there may be a problem with sending the verification message, what if the user is in Poland and has a number from Germany?
Is there any solution ready for this? The topic seems to be very difficult.
38 replies