Glide source code analysis and three-level cache principle

Glide is an open source image loading library for Android, which can help us download, cache and display images in various formats. It is also one of the mainstream image loading frameworks. How to realize the internal source code? Explain the main process and make a brief analysis. The usage is as follows: Glide.with(context).load(url).into ...

Added by Far Cry on Sat, 12 Feb 2022 09:47:41 +0200

Online interviewer | don't ask me any more

This issue is the second issue of the [Online interviewer] series, which mainly focuses on high-frequency interview questions.Reply to [interview] obtain Dabin's carefully sorted interview Manual of the big factory, which has helped many small partners win big factory offer s!Interview siteInterviewer: Hello, this is interviewer xxx. Are you Da ...

Added by mikegzarejoyce on Sat, 12 Feb 2022 08:35:47 +0200

Prepare for 2022 spring move - java-day8

java What are strong reference, soft reference, weak reference and virtual reference? Strong reference (default support mode): when the memory is insufficient, the JVM starts garbage collection. For strongly referenced objects, even if there is OOM, the object will not be recycled and will not be collected.Soft reference: when the system me ...

Added by ixos on Sat, 12 Feb 2022 08:03:20 +0200

Everyone is a Serverless architect | barrage application development practice

Introduction: how to use the Serverless architecture to realize the application of full duplex communication and how to use the database in the Serverless architecture. This article will reveal the answer for youAuthor | Han Xie (head of Alibaba cloud native middleware front end)The concept of Serverless is real-time flexibility, running out of ...

Added by ralph4100 on Sat, 12 Feb 2022 07:01:43 +0200

Using synchronized g keyword in Java to solve the problem of ticket overselling

This article is an original article of Joshua 317. Please indicate: reprinted from Joshua 317 blog Using synchronized g keyword in Java to solve the problem of ticket overselling - Joshua 317's blog 1, Multithreading problem Let's first look at what happens to multi-threaded ticket selling without locking mechanism when synchronized is not us ...

Added by bcamp1973 on Sat, 12 Feb 2022 06:42:47 +0200

hystrix usage example

Three degradation strategies of hystrix are:Fuse triggered degradationTimeout triggered degradationResource isolation triggers degradation, which is divided into thread pool and semaphoreThe following are introduced in combination with examples.1, Fuse triggered degradation1. When the failure rate of a service reaches a certain limit, the fuse ...

Added by MajusC00L on Sat, 12 Feb 2022 06:40:46 +0200

Using Web Uploader file upload component to assist Java to realize breakpoint continuation

1, Breakpoint continuation Breakpoint continuation overview Breakpoint continuation means that when downloading or uploading, the download or upload task is divided into several parts, and each part is uploaded or downloaded by one thread. In case of network failure, you can continue to upload and download the unfinished part from the ...

Added by simwiz on Sat, 12 Feb 2022 06:09:26 +0200

The springboot druid database connection pool has been reconnected since the connection failed

When using a personal Alibaba cloud tester, when querying the real-time output log, you see that the database connection fails, and the server has been reconnecting to the server. At first, I thought it was a repeated attack. Later, after restarting the service, there was no continuous reconnection. See the following output log:2022-02-09 11:04 ...

Added by ddevitt on Sat, 12 Feb 2022 05:43:33 +0200

SpringBoot+SpringSecurity front end and back end separation + Jwt permission authentication

preface Generally speaking, we use spring security. By default, the front and back ends are integrated, such as thymeleaf or Freemarker. Spring security also comes with its own login page and allows you to configure the login page and error page. But now the separation of front and back ends is the right way. If the front and back ends are se ...

Added by macman90 on Sat, 12 Feb 2022 05:35:19 +0200

Spring framework learning notes for beginners [spring tutorial]

Spring is a widely used framework in the process of Java Web development. It is a lightweight application framework. Its powerful function and excellent performance are loved by many developers. In the actual project development process, the server is divided into three layers: presentation layer (Web), business logic layer (Service) and persi ...

Added by error_22 on Sat, 12 Feb 2022 04:49:57 +0200