Sobes.tech

What is a B-tree index and why is it most frequently used?

Senior
ClearWay
224

What tools and technologies do you use for organizing logging in your projects?.

Junior — Middle
224

What mechanisms are used for asynchronous data copying between databases?

Junior — Middle
Startribe
224

What happens if you try to add an element to a Map that has not been created or initialized?

Junior — Middle
224

Where in the project structure is the data interaction layer located?

Junior — Middle
Кадровое агентство BWG
224

Explain the principle of data transfer channels in your application.

Junior — Middle
WildberriesWildberries
Магнит Тех
Startribe
+3
224

Can you list the main types of abstractions used in Kafka?

Junior — Middle
Магнит Тех
224

Can you explain what phantom read phenomenon means in the context of transactions?

Junior — Middle
ЦУМ
224

What is the maximum number of elements you can add using the append method to a given slice without errors or changes to the original data?

Junior — Middle
224

What is the maximum number of threads allowed in a single process?

Junior — Middle
КасперскийКасперский
224

func Copy(src io.Reader, dst io.Writer) error { //... } import gocopy s := file.Open() err := gocopy.Copy(s, d) func Copy(src io.Reader, dst io.Writer) (statusCh, error) { //... go func() { statusCh }() } func Read() { select { case status := <-statusCh: } } type Stat struct { status string err error } func Copy(src io.Reader, dst io.Writer) chan Stat { //... statusCh := make(chan Stat{}) go func() { statusCh{ } } return statusCh } func Read() { select { case status := <-statusCh: } } import gocopy s := file.Open() err := gocopy.Copy(s, d) func Copy(src io.Reader, dst io.Writer) chan Stat { //... statusCh := make(chan Stat{}) buf := make([]byte, 1024) var total int64 go func() { for { n, err := src.Read(buf) if n > 0 { writen, err := dst.Write(buf[:n]) total += int64(writen) if err != nil { statusCh <- Stat{ status: "done with err", err: err, } return } } if err == io.EOF { statusCh <- Stat{ bCopy: total, status: "done", err: nil, } return } if err != nil { statusCh <- Stat{ status: "done with err", err: err, } return } } } return statusCh } func Read() { select { case status := <-statusCh: if status.err != nil { return } } } func Copy(src io.Reader, dst io.Writer) chan Stat { //... statusCh := make(chan Stat{}) buf := make([]byte, 1024) var total int64 go func() { for { select { case : n, err := src.Read(buf) if n > 0 { writen, err := dst.Write(buf[:n]) total += int64(writen) if err != nil { statusCh <- Stat{ status: "done with err", err: err, } return } } if err == io.EOF { statusCh <- Stat{ bCopy: total, status: "done", err: nil, } return } if err != nil { statusCh <- Stat{ status: "done with err", err: err, } return } default: statusCh <- Stat{ bCopy: total, status: "pending", err: nil, } } } } return statusCh } func Read() { select { case status := <-statusCh: if status.err != nil { return } } }

Senior
Бюро 1440Бюро 1440
224

Is it possible to apply multiple locking mechanisms (Mutex) within the same function simultaneously?

Junior — Middle
GsmSoft
224

What are the differences between RAM that stores data during program execution and shared memory accessible by multiple processes?

Junior — Middle
TwinTrade
224

What is the difference between goroutines and traditional execution threads?

Junior — Middle
Самокат Тех
Холодильник.руХолодильник.ру
224

How is interaction between goroutines carried out using channels in Go?

Junior — Middle
224

How does the program behave when trying to send data to a channel that has no elements and uses buffering?

Junior — Middle
СБЕРСБЕР
224

Can you explain the concept of pseudo-parallel processes in programming?

Junior — Middle
224

What data structures make up the implementation of key-value mapping in most programming languages?

Junior — Middle
223

Tell me more about how you reduced P95 Latency.

Senior
Effective IT
223

What is the difference between replication mechanisms and the master server in a database?

Junior — Middle
RutubeRutube
223
/416