Jul 28, 2022 11:18
Hey Joel, thank you for the reply! We had a look at the connection usages from our apps and seems like we could bring most of the services down to 5 connections, from current limit of 10, because most of the time the connections are simply idling and doing nothing. This would allow us to accomodate twice as many micro services on a single DB server before running into a similar problem.

Thank you also for the suggestion to perhaps split it into N largers servers, rather than having a server for each microservice. Of course, server per MS is the most flexible solution when it comes to hardw
Jul 26, 2022 08:58
Hey guys, I am looking for a help with microservice architecture and database connections. We are currently running around 20 JVM microservices, all of them connecting to a single PostgreSQL database server, with each machine having a separate database on the single server. This costs us around 350 EUR month.

We started having problems with database connections to the server, it seems we are reaching connection limit of the server, because each of our microservices also has a self-managed application DB connection pool (HikariCP).
 
May 6, 2022 10:55
I am still trying to confirm this, but I believe using xorg does actually fix this problem for me. Yesterday I switched to Wayland and the problem was persistent - every time the PC suspended, I could not wake it up anymore. I switched to xorg in the evening and was able to wake it up every single time. I am running Ubuntu 22.04 on Dell XPS 9700.
 
Oct 12, 2017 12:33
@OrangeDog You're telling me the e.g. letter a can no longer be represented as a sequence of the following 8 bits 01100001? If not, what exactly are the ones and zeroes in this case? AFAIK a character is a symbol with 256 states, thus requiring 8 bits to represent all states, therefore a characters is indeed bits (or a series of it, if you wish).
Oct 12, 2017 12:33
@OrangeDog These characters are bits, numbers are bits, everything is bits, just information. And in order to preserve data you need to store ALL bits. You cannot just throw some away. And if you want to store the state of ethernet you need two bits, otherwise some data would be lost. If you stored only a single bit you would have half the information. Now if you could store the ethernet state in a single something, surely storing one something is less than storing two bits. Or maybe I am missing on some basic math here. :)
Oct 12, 2017 12:33
@OrangeDog That's just terminology. It does not matter whether it is called a bit or a car. Obviously, if it was transferring more than 2 states the name bit (coming from binary digit) makes little sense and thus it would have a different name. By properly transferring the information I mean you need to include all, i.e. 0-0, 0-1, 1-0 and 1-1, combinations. Thus you require two bits to transfer all the data, properly. Should a bit get lost the data is invalid. With it having 4 states you would not have the combinations but values 0, 1, 2 and 3 instead.
Oct 12, 2017 12:33
I feel like your answer addresses the question from the other side, as if OP asked whether symbols can signal more than 2 values. You are answering that Ethernet has 4 voltage levels and thus needs 2 bits to properly transfer all the information (2 bits per 2 states in each bit), however to me it seems like op wanted to know if you could transfer all those 4 states in a single bit, should a single bit store 4 values instead of two, hence you would not require as much space.
 
Oct 10, 2017 12:54
Bye.
Oct 10, 2017 12:54
Ok, I give up. :)
Oct 10, 2017 12:52
Ok, how many bits would each symbol have?
Oct 10, 2017 12:52
Imagine a world where ethernet is system with 2-state symbols. How many bits per symbol do you need then?
Oct 10, 2017 12:51
Think in abstractions.
Oct 10, 2017 12:51
I am just making up a scenario.
Oct 10, 2017 12:50
Because storing two is pointless.
Oct 10, 2017 12:50
I know. So if you only needed 2 states for ethernet the symbol would only store 1 bit.
Oct 10, 2017 12:49
You can't have a single-bit symbol?
Oct 10, 2017 12:49
Because it has 4 states?
Oct 10, 2017 12:48
Why not?
Oct 10, 2017 12:48
?
Oct 10, 2017 12:48
If you used only 1 bit per ethernet symbol you would be able to store only two states. Are we on the same page here?
Oct 10, 2017 12:47
Ethernet uses 4 voltage levels, so 2 bits per symbol. - Aren't the 4 voltage levels 4 states?
Oct 10, 2017 12:40
Digit is a single thing, OrangeDog. But bit is a combination of two digits, binary digit.
Oct 10, 2017 12:39
Yes, two values.
Oct 10, 2017 12:39
The bit (a portmanteau of binary digit) is a basic unit of information used in computing and digital communications. A binary digit can have only one of two values, and may be physically represented with a two-state device. These state values are most commonly represented as either a 0or1. The two values of a binary digit can also be interpreted as logical values (true/false, yes/no), algebraic signs (+/−), activation states (on/off), or any other two-valued attribute. The correspondence between these values and the physical states of the underlying storage or device is a matter of convention,...
Oct 10, 2017 12:39
A binary digit can have only one of two values, and may be physically represented with a two-state device. These state values are most commonly represented as either a 0or1.
Oct 10, 2017 12:37
Yes, but this information can have only two states. No more.
Oct 10, 2017 12:36
Bit is information, bit is not information. What is a bit?
Oct 10, 2017 12:36
Now you're telling me bit contains no information?
Oct 10, 2017 12:36
Dude, you JUST said bit is the information.
Oct 10, 2017 12:35
Ok, but you agree the bit can contain only the information about being on or off, right?
Oct 10, 2017 12:34
bit allows you to store information about whether current is supposed to be on or off. That's two states. true/false for simplicity.
Oct 10, 2017 12:33
We mean the same thing, just call it differently.
Oct 10, 2017 12:32
Logical-0 and Logical-1 are not states?
Oct 10, 2017 12:31
I know that's the state is the information. I am not denying that.
Oct 10, 2017 12:30
Which maps to the respective values 1 or 0.
Oct 10, 2017 12:30
How is it represented then?
Oct 10, 2017 12:29
Logical-1 and Logical-0 that is.
Oct 10, 2017 12:29
You know this state is represented using 1 and/or 0 in transistors, right?
Oct 10, 2017 12:28
So current is not either on or off?
Oct 10, 2017 12:28
Since when>
Oct 10, 2017 12:28
There are not?
Oct 10, 2017 12:28
You need to transfer the ones and zeroes somehow.
Oct 10, 2017 12:28
How do you transfer the information then?
Oct 10, 2017 12:27
How many bits do you need for that?
Oct 10, 2017 12:26
What's a 3 state symbol?
Oct 10, 2017 12:25
How can I know how many I need?
Oct 10, 2017 12:23
Isn't 1 byte 8 bits?
Oct 10, 2017 12:23
What is 1 byte?
Oct 10, 2017 12:23
Standard characters, that is.