Binance159 open jobs

Backend Engineer (Java) - KYB Tech

BackendPosted 2 weeks agofrom Binance's own hiring page

Work type
On-siteSingapore
Experience
5+ years
Pay
Not listed
Posted
2 weeks ago
Before you apply: make your resume fit this job

From the ad

  • Mandarin requiredBilingual English/Mandarin is required to be able to coordinate with overseas partners and stakeholders
  • Degree or equivalent experienceBachelor's degree in computer science, engineering, or equivalent industry experience

Skills it mentions

Nice to have

Add your skills to see which ones you have.

Interview questions for this job6 with answers below, on Java, Spring Boot, MySQL and 2 more

About the job

Binance is a leading global blockchain ecosystem behind the world’s largest cryptocurrency exchange by trading volume and registered users. We are trusted by 300+ million people in 100+ countries for our industry-leading security, user fund transparency, trading engine speed, deep liquidity, and an unmatched portfolio of digital-asset products. Binance offerings range from trading and finance to education, research, payments, institutional services, and more. Our mission is to increase the freedom of money and financial access for people around the world.

Responsibilities

  • Collaborate with relevant stakeholders to convert business requirements into services with solid code and meaningful tests.
  • Proactively initiate performance tuning, troubleshoot incidents, etc.
  • Write and maintain high-quality technical documentation.
  • Write high quality code, follows best practices and advocates for engineering excellence.
  • Collaborate across other engineering teams and mentor junior members of the team.



Requirements

  • Bachelor's degree in computer science, engineering, or equivalent industry experience.
  • Minimum 5 years of professional experience in building high-throughput distributed applications.
  • Proficient in core Java and the Spring Framework.
  • Proficient in MySQL, and familiar with at least one NoSQL database.
  • Proficient in distributed system design, and familiar with at least one messaging middleware and the underlying design principles.
  • A quick learner with the ability to perform under pressure.
  • Able to collaborate with the remote team across different time zones.
  • Bilingual English/Mandarin is required to be able to coordinate with overseas partners and stakeholders.


Desirable

  • Performance tuning experience on JVM, SQL, RPC, etc.
  • Experience in KYC or Compliance is a plus.

Why Binance

  • Shape the future of finance 
  • Collaborate with world-class talent in a user-centric global organization with a flat structure
  • Tackle challenging projects in a fast-paced and innovative enviornment with autonomy
  • Thrive in a results-driven workplace with opportunities for career growth and continuous learning
  • Competitive salary and company benefits
  • Remote-first, work-from-home arrangement (may vary depending on the nature of the role and team)

Binance is committed to being an equal opportunity employer. We believe that having a diverse workforce is fundamental to our success.

By submitting a job application, you acknowledge that you have read our Candidate Privacy Notice.

We may use artificial intelligence (AI) tools to support parts of the hiring process, such as reviewing applications, analyzing resumes, or assessing responses and identifying potential inconsistencies or verification signals in application materials based on available information. These tools assist our recruitment team but do not replace human judgment. Final hiring decisions are ultimately made by humans. If you would like more information about how your data is processed, please contact us.

Interested?Backend Engineer (Java) - KYB Tech at Binance

Apply on company site (opens in a new tab)

The job ad ends here

Interview questions for this job6 with answers, on Java, Spring Boot, MySQL and 2 more

Interview questions for this job

For the skills the ad mentions: Java, Spring Boot, MySQL, System design and SQL.

936 questions
  • Explain: HashSet vs TreeSetJava

    HashSet vs TreeSet

    HashSet class implements the Set interface, backed by a hash table (actually a HashMap instance). It makes no guarantees as to the iteration order of the set; in particular, it does not guarantee that the order will remain constant over time. This class permits the null element.

    This class offers constant time performance for the basic operations (add, remove, contains and size), assuming the hash function disperses the elements properly among the buckets. Iterating over this set requires time proportional to the sum of the HashSet instance's size (the number of elements) plus the "capacity" of the backing HashMap instance (the number of buckets).

    TreeSet class implements the Set interface that uses a tree for storage. It inherits AbstractSet class and implements the NavigableSet interface. The elements are ordered using their natural ordering, or by a Comparator provided at set creation time, depending on which constructor is used.

    TreeSet is basically an implementation of a self-balancing binary search tree like a Red-Black Tree. Therefore operations like add, remove, and search take O(log(n)) time. The reason is that in a self-balancing tree, it is made sure that the height of the tree is always O(log(n)) for all the operations. Therefore, this is considered as one of the most efficient data structure in order to store the huge sorted data and perform operations on it. However, operations like printing N elements in the sorted order takes O(n) time.

    Property HashSet TreeSet
    Ordering Does not maintain any order Maintains an object in sorted order
    Comprasion Uses equals() method Uses compareTo() method
    Data structure Implemented using HashTable Implemented using a tree structure
    Null element Allowed Not allowed
    Performance Time complexity average - O(1) Guaranteed O(log(n)) time cost for the basic operations

    Links

    https://docs.oracle.com/javase/7/docs/api/java/util/TreeSet.html
    https://docs.oracle.com/javase/7/docs/api/java/util/HashSet.html
    https://www.geeksforgeeks.org/hashset-in-java/
    https://www.geeksforgeeks.org/treeset-in-java-with-examples/
    https://www.geeksforgeeks.org/hashset-vs-treeset-in-java/
    https://www.tutorialspoint.com/difference-between-tree-set-and-hash-set-in-java

    From Android Interview Questions (Apache 2.0)

  • How to inject a prototype bean into a singleton?Spring Boot

    Direct injection makes the singleton bean keep a single prototype instance, so it's not recreated each time. To get a new prototype bean on every access, use one of these methods:

    • ObjectFactory / Provider – Inject ObjectFactory<T> or Provider<T> and call getObject()/get() to fetch a new instance each time.
    • @Lookup – Annotate a method with @Lookup; Spring will override it to return a new prototype bean every time.
    • Use @Scope(value = "prototype", proxyMode = ScopedProxyMode.TARGET_CLASS). Links
    • https://dev.to/anh_trntun_4732cf3d299/injecting-a-prototype-bean-into-a-singleton-in-spring-328g
    • https://docs.spring.io/spring-framework/reference/core/beans/dependencies/factory-method-injection.html

    From Java interview (MIT)

  • How does ORDER BY FIELD() in MySQL work internally?MySQL

    For the record

    SELECT * FROM mytable WHERE id IN (1,2,3,4) ORDER BY FIELD(id,3,2,1,4);
    

    should work as well because you do not have to order the list in the WHERE clause

    As for how it works,

    • FIELD() is a function that returns the index position of a comma-delimited list if the value you are searching for exists.

    • The ORDER BY values are evaluated by what FIELD() returns

    You can create all sorts of fancy orders

    For example, using the IF() function

    SELECT * FROM mytable
    WHERE id IN (1,2,3,4)
    ORDER BY IF(FIELD(id,3,2,1,4)=0,1,0),FIELD(id,3,2,1,4);
    

    This will cause the first 4 ids to appear at the top of the list, Otherwise, it appears at the bottom. Why?

    In the ORDER BY, you either get 0 or 1.

    • If the first column is 0, make any of the first 4 ids appear
    • If the first column is 1, make it appear afterwards

    Let's flip it with DESC in the first column

    SELECT * FROM mytable
    WHERE id IN (1,2,3,4)
    ORDER BY IF(FIELD(id,3,2,1,4)=0,1,0) DESC,FIELD(id,3,2,1,4);
    

    In the ORDER BY, you still either get 0 or 1.

    • If the first column is 1, make anything but the first 4 ids appear.
    • If the first column is 0, make the first 4 ids appear in the original order

    YOUR ACTUAL QUESTION

    If you seriously want internals on this, goto pages 189 and 192 of the Book

    for a real deep dive.

    In essence, there is a C++ class called ORDER *order (The ORDER BY expression tree). In JOIN::prepare, *order is used in a function called setup_order(). Why in the middle of the JOIN class? Every query, even a query against a single table is always processed as a JOIN (See my post Is there an execution difference between a JOIN condition and a WHERE condition?)

    The source code for all this is sql/sql_select.cc

    Evidently, the ORDER BY tree is going to hold the evaluation of FIELD(id,3,2,1,4). Thus, the numbers 0,1,2,3,4 are the values being sorted while carrying a reference to the row involved.

    From Database Administrators Stack Exchange: asked by itz_nsn, answered by RolandoMySQLDBA (CC BY-SA 3.0)

  • What is graceful degradation?System design

    Serving a reduced version of the product instead of an error when a dependency fails. An example is hiding the recommendation row when the recommendation service is down, while checkout keeps working.

    From Grokking System Design (open companion) (CC BY 4.0)

  • How does database indexing work in reality?SQL

    Why is it needed?

    When data is stored on disk-based storage devices, it is stored as blocks of data. These blocks are accessed in their entirety, making them the atomic disk access operation. Disk blocks are structured in much the same way as linked lists; both contain a section for data, a pointer to the location of the next node (or block), and both need not be stored contiguously.

    Due to the fact that a number of records can only be sorted on one field, we can state that searching on a field that isn’t sorted requires a Linear Search which requires (N+1)/2 block accesses (on average), where N is the number of blocks that the table spans. If that field is a non-key field (i.e. doesn’t contain unique entries) then the entire tablespace must be searched at N block accesses.

    Whereas with a sorted field, a Binary Search may be used, which has log2 N block accesses. Also since the data is sorted given a non-key field, the rest of the table doesn’t need to be searched for duplicate values, once a higher value is found. Thus the performance increase is substantial.

    What is indexing?

    Indexing is a way of sorting a number of records on multiple fields. Creating an index on a field in a table creates another data structure which holds the field value, and a pointer to the record it relates to. This index structure is then sorted, allowing Binary Searches to be performed on it.

    The downside to indexing is that these indices require additional space on the disk since the indices are stored together in a table using the MyISAM engine, this file can quickly reach the size limits of the underlying file system if many fields within the same table are indexed.

    How does it work?

    Firstly, let’s outline a sample database table schema;

    Field name       Data type      Size on disk
    id (Primary key) Unsigned INT   4 bytes
    firstName        Char(50)       50 bytes
    lastName         Char(50)       50 bytes
    emailAddress     Char(100)      100 bytes
    

    Note: char was used in place of varchar to allow for an accurate size on disk value.

    This sample database contains five million rows and is unindexed. The performance of several queries will now be analyzed. These are a query using the id (a sorted key field) and one using the firstName (a non-key unsorted field).

    Example 1 - sorted vs unsorted fields

    Given our sample database of r = 5,000,000 records of a fixed size giving a record length of R = 204 bytes and they are stored in a table using the MyISAM engine which is using the default block size B = 1,024 bytes. The blocking factor of the table would be bfr = (B/R) = 1024/204 = 5 records per disk block. The total number of blocks required to hold the table is N = (r/bfr) = 5000000/5 = 1,000,000 blocks.

    A linear search on the id field would require an average of N/2 = 500,000 block accesses to find a value, given that the id field is a key field. But since the id field is also sorted, a binary search can be conducted requiring an average of log2 1000000 = 19.93 = 20 block accesses. Instantly we can see this is a drastic improvement.

    Now the firstName field is neither sorted nor a key field, so a binary search is impossible, nor are the values unique, and thus the table will require searching to the end for an exact N = 1,000,000 block accesses. It is this situation that indexing aims to correct.

    Given that an index record contains only the indexed field and a pointer to the original record, it stands to reason that it will be smaller than the multi-field record that it points to. So the index itself requires fewer disk blocks than the original table, which therefore requires fewer block accesses to iterate through. The schema for an index on the firstName field is outlined below;

    Field name       Data type      Size on disk
    firstName        Char(50)       50 bytes
    (record pointer) Special        4 bytes
    

    Note: Pointers in MySQL are 2, 3, 4 or 5 bytes in length depending on the size of the table.

    Read the rest at the sourceFrom Stack Overflow: asked by Xenph Yan, answered by Xenph Yan (CC BY-SA 4.0)

  • Have you ever failed at a task?Behavioural

    Employers usually base questions on jobs you have done in the past. This gives you the chance to talk about your experience. For instance, they might ask:

    • when have you faced a challenging situation?
    • can you tell us about a personal achievement at work?
    • have you ever taken the initiative?
    • have you ever failed at a task?

    Your answers should reflect the skills the employer wants. Be positive and tailor your examples to the job description.

    If you don't have much work history, you can use examples from outside of work. You can also use examples from volunteering experience.

    Use the  STAR method  to help structure your answers.

    From National Careers Service: interview advice (Open Government Licence v3.0)

Similar jobs

More like this: Backend developer jobs in Singapore (53)