-
IOC (Inverse of Control) Container Or service container. In software engineering, inversion of control (IoC) describes a design in which custom-written portions of a computer program receive the flow of control from a generic, reusable library. A software architecture with this design inverts control as compared to traditional procedural programming: in traditional programming, the custom code that expresses the purpose of the program calls into reusable libraries to take care of generic tasks, but with inversion of control, it is the reusable code that calls into the custom, or task-specific, code.
-
SQL Query Order of Execution https://www.periscopedata.com/blog/sql-query-order-of-operations
-
Join và subquery, ai nhanh hơn Tùy vào số lượng data và data muốn lấy ra, mà chúng ta sẽ biết là lúc nào câu query chứa Join hay subquery sẽ nhanh hơn. Từ đó, chúng ta sẽ có những câu query sáng suốt hơn, ít tốn performance hơn.
- Nếu data ít hơn khoảng 20k record, thì lựa chọn với JOIN sẽ hoạt động tốt hơn.
- Nếu data nhiều hơn như 100k+ records thì ựa chọn với IN sẽ hoạt động tốt hơn.
- Ngoài ra, nếu bạn không cần dữ liệu từ bảng khác, thì dùng phép IN là ổn, nhưng tốt hơn hết là bạn nên dùng EXISTS.
-
Kể tên các loại cache trong database, với mỗi loại khi nào nên dùng ?
-
có thể kể tên nhưng design pattern mà laravel framework sử dụng ? Respository Pattern Builder (Manager) Pattern - Part 1 Factory Pattern - Part 2 Repository Pattern - Part 3 (current) Strategy Pattern - Part 4 Provider Pattern - Part 5 Facade Pattern - Part 6
-
khi nào dùng index trong mysql, thuật toán ?
-
So sánh giữa Eloquent ORM và QueryBuilder trong Laravel ? https://viblo.asia/p/so-sanh-giua-eloquent-orm-va-querybuilder-trong-laravel-maGK7MG9lj2
-
Khi nào thì dùng redis ? kể tên những ứng dụng của redis ?
- redis có các loại data structure nào ? Redis supports following Data Structures Strings Hashes Lists Sets Sorted sets with range queries bitmaps Hyperloglogs Geospatial indexes with radius queries
-
search full text là search như thế nào ? In text retrieval, full-text search refers to techniques for searching a single computer-stored document or a collection in a full-text database. Full-text search is distinguished from searches based on metadata or on parts of the original texts represented in databases (such as titles, abstracts, selected sections, or bibliographical references). In a full-text search, a search engine examines all of the words in every stored document as it tries to match search criteria (for example, text specified by a user). TF-IDF Term Frequency, abbreviated "TF", is a simple metric: it's the number of times a certain word appears in a document Inverse Document Frequency, abbreviated "IDF", is more evolved: the rarer a word is, the higher this value. It's the log ratio of the number of total documents over the number of documents a term appears in. Rarer words, therefore, yield bigger "IDF"s.
-
khi nào nên dùng CSDL no sql thay thế cho các hệ cơ sở dữ liệu relation ? (relational database)
-
các mức về độ phức tạp của thuật toán ? Độ phức tạp hằng số. Độ phức tạp tuyến tính. Độ phức tạp đa thức Độ phức tạp logarit Độ phức tạp hàm mũ
-
sự khác nhau giữa with và load trong eloquent laravel ?
-
tại sao phải dùng docker trong dự án ?
- container và image khác nhau thế nào ?
- Docker containers are basically runtime instances of Docker images.
-
sự khác nhau giữa git merge và git rebase
-
So sánh nginx và apache ? tại sao nginx lại hiểu quả hơn apache ?
Nginx is an event based web server
All request are handled by a single thread.
Nginx avoids child processes idea.
Nginx resembles speed
Nginx is better when it comes to memory consumption and connection
Nginx is better when you want load-balancing
For PHP, Nginx might be preferable as it supports PHP internally
Nginx do not support O.S like IBMi and OpenVMS.
Nginx comes only with core features
Nginx performance and scalability do not depend on hardware
Apache is a process based server
Single thread handles a single request.
Apache is based on child processes
Apache resemble power
Apache is not up-to the mark when it comes to memory consumption and connection
Apache will refuse new connections when traffic reaches the limit of processes
Apache support’s PHP, Python, Perl and other languages using plugins. It is useful when application is based on Python or Ruby
Apache support much wider range of O.S
Apache provides lot more functionality than Nginx
Apache is dependent on hardware components like CPU and memory
- hiểu thế nào về Event Loop trong Javascript
Bạn có thể hình dung về Call stack giống như một chồng đĩa xếp từ thấp lên cao, chiếc đĩa xếp cuối cùng ở đỉnh chồng đĩa, nó sẽ được lấy ra sớm nhất và chiếc đĩa ở ngay dưới nó sẽ là chiếc tiếp theo... Mỗi lệnh được nạp vào Call stack theo trình tự xếp đĩa, còn trả về giống như lấy dần đĩa từ trên đỉnh
- Traits trong PHP hay laravel
Traits are a mechanism for code reuse in single inheritance languages such as PHP. A Trait is intended to reduce some limitations of single inheritance by enabling a developer to reuse sets of methods freely in several independent classes living in different class hierarchies. The semantics of the combination of Traits and classes is defined in a way which reduces complexity, and avoids the typical problems associated with multiple inheritance and Mixins.
A Trait is similar to a class, but only intended to group functionality in a fine-grained and consistent way. It is not possible to instantiate a Trait on its own. It is an addition to traditional inheritance and enables horizontal composition of behavior; that is, the application of class members without requiring inheritance.”
