Posts

hibernateda entiyde array tipli objectlerle ishlemek uchun solution

bele case ola bilerki postgres bazada int ve ya string tipde array saxlansin . bu arrayla entityde hibernate vasitesile ishlemek uchun bir solution lazimdir  bunu uchun gradle da  implementation 'com.vladmihalcea:hibernate-types-52:2.7.0'    bu dependecy lazimdir bunun maven versiyasini da tapmaq olar . indi ise kod numunesine baxaq: @Entity(name = "Event") @Table(name = "event") @TypeDefs({     @TypeDef(         name = "string-array",         typeClass = StringArrayType.class     ),     @TypeDef(         name = "int-array",         typeClass = IntArrayType.class     ) }) public static class Event extends BaseEntity {     @Type( type = "string-array" )     @Column(         name = "sensor_names",         columnDefinition = "text[]"     )     private String[] sensorNames; ...

Huge difference File size and file size on disk problem on windows operation system

 https://www.partitionwizard.com/partitionmanager/size-vs-size-on-disk.html

All about Mircoservices,Tools in microservice

about scaling: https://medium.com/@harithjaved/scaling-your-web-application-693657ce333c  about microservices: https://morioh.com/p/4d79069e1cc5  https://gravitational.com/blog/microservices-containers-kubernetes/ about docker: https://medium.com/devopsturkiye/docker-seriyas%C4%B1-i-hiss%C9%99-docker-n%C9%99dir-nec%C9%99-i%C5%9Fl%C9%99yir-b57677d92ee6 about kubernetes https://medium.com/pashabank/kubernetes-n%C9%99dir-15b6081227f2 Data consistency: https://dilfuruz.medium.com/data-consistency-in-microservices-architecture-5c67e0f65256 Database management , patterns, all things about managing https://relevant.software/blog/microservices-database-management/

Different topics about Computer Hardware

IP adress explanation: https://whatismyipaddress.com/ipv4-parts BIOS,CMOS,UEFI what is and difference among them: https://www.youtube.com/watch?v=LGz0Io_dh_I All videos about hardware: https://www.youtube.com/channel/UCJQJ4GjTiq5lmn8czf8oo0Q https://www.youtube.com/channel/UCbiGcwDWZjz05njNPrJU7jA M.2 NVMe SSD and normal SSD difference: https://www.youtube.com/watch?v=HvfIeTieXOI Explaining PCIe slots: https://www.youtube.com/watch?v=PrXwe21biJo WD Black NVMe SSD , explaining SSD types: https://www.youtube.com/watch?v=kvHUVcgo8xY RAM Explained - Random Access Memory: https://www.youtube.com/watch?v=PVad0c2cljo

Uninstall JDK from linux

 https://novicestuffs.wordpress.com/2017/04/25/how-to-uninstall-java-from-linux/

Hibernate and Application Performance

 hibernate 2 cur cache memory var: L1(Level bir) burada entitymanager a aiddir. bazadan gelen entityler cacheda saxlanir ve her entitymanagere xasdir L2(level 2) burada ise umumiyyetle EntityManagerFactory ye xidmet eden entiymanagerler arasinda shared cache memorydir ve level 1 den daha uzun muddetlidir level 2 cache i aktivleshdirmek uchun dependency elave edilir projecte ve 1-2 config edilir Javada 4 cur reference type var : https://dzone.com/articles/reference-types-java-part-1 Strong references. Soft references. Weak references. Phantom references entitymanager de weak referance var , ve o strongla muqayisede GC terefinden istenilen an siline biler ram lazim olsa. soft referance - strongdan zeif , weakdan gucludur ve GC onu ancaq en vacib hallarda sile biler, weak i her memory chatmiyanda sile biler ama softu ancaq outofmemory alacagi teqdirde silib ishlede biler ve soft un omru uzun olur . ve Level 2 cache da istifade edir bunu hibernate. burda da bele shey varki , LRU(last r...

Hibernate Projection approach in project

With using this approach we can get any of field of entity and this way is more efficient rather than get all entity fileds , example in below: @Repository public interface CompanyRepo extends JpaRepository<Company, Long> {     Integer countById(long id);     <T extends CompanyViewProtocol> Optional<T> findById(long id, Class<T> type); } public interface CompanyViewProtocol { } public interface ContactDetailView extends CompanyViewProtocol {     CompanyContactDetail getContactDetail(); } in there companyRepo.findById(1L,ContactDetailView.class)   gives us CompanyContactDetail