I am returning a large number of collections from a DTO object, and would like to know if anyone can point me in the right direction. Any type of collection is fine, but I don’t know which one is b
Month: October 2021
How to configure distributed cache in grails (do not use Terracota)
I want to deploy my application (Grails 1.3.5) in two or more tomcats (7.0). I managed to do it without problems, but now I want to use RMI configuration My cache (ehcache).
What I have done
Distributed global unique ID generation strategy
Why a distributed system needs an ID generation system In a complex distributed system, it is often necessary to uniquely identify a large amount of data and messages. For example, in the financial
How to call abstract methods from abstract classes called by inheritance class
I want to call the method of the abstract class from the abstract class called by the inherited class.
Abstract class:
public abstract class Abstract {
protected void updateMotionY(flo
Haskell inheritance, data, constructor
So I want to define multiple data classes for my Asteroids game/job:
data One = One {oneVelocity :: Velocity, onePosition :: Position, (((other properties unique to One))))
data Two = Two {tw
High precision algorithm package based on class and object
High precision formula (don’t ask me where it comes from, you can’t find it on the Internet because this is what I wrote)
🙂
1. High-precision addition: add to carry and go to zero
2.
[Distributed] cache penetration, cache avalanche, cache breakdown solution
1. What kind of data is suitable for caching
Cache penetration refers to querying a data that must not exist, because the cache is missed, it needs to be queried from the database, if the dat
SpringCloud (Finchley Version) Tutorial (2): Service Consumers (REST + RIBBON)
In the previous article, I talked about service registration and discovery. In the microservice architecture, the business will be split into an independent service, and the communication between t
Setup mode
1. Adapter mode:
The main function of the adapter mode is to convert an interface that cannot be used by a class into a usable interface;
Second, class adapter:
/ /Achieved by inh
Inheritance, Super, this
1 /**
2 * Inheritance: Subclass inherits the attributes and behaviors of the parent class, making the subclass The object has the same properties and the same behavior as the parent class. Subcl