Backend Engineer
BackendPosted over 2 months agofrom Drivetrain's own hiring page
- Work type
- RemoteIn India and the US
- Experience
- 3+ years
- Pay
- Not listedUsually ₹6.2 LPABackend, median at 1–4 years, in India (Payscale)
- Posted
- Over 2 months agoOpen over 2 years
Skills it mentions
Add your skills to see which ones you have.
About the job
Drivetrain is a remote-first company headquartered in the San Francisco Bay Area. Founded in 2021 by a couple of ex-Googlers, Drivetrain is a fast-growing company on a trajectory for success with backing from leading venture capital firms.
Drivetrain provides a great culture for its employees to thrive in and be happy.
💜 Remote-friendly: Drivetrain brings together the best and the brightest, no matter where they are and provides them a great degree of autonomy. We trust our people.🗣️ Open & transparent: We know that when our creators have access to all the information they need, their best work will emerge.👏 Idea-friendly: We provide an environment to explore new ideas, to take risks, to make mistakes, and to learn, so you can succeed. Anyone in the company can come up with great ideas and become a catalyst for positive change. We let the best ideas win.👥 Customer-centric: We follow a product-led growth strategy, continuously learning from our customers and collaborating to build the amazing software that Drivetrain is.
About the role
Drivetrain is looking for a Backend Engineer to join our team. The role involves working on challenging problems in backend application development, algorithms, system design, and serving in production.
What you’ll be doing
The underlying technical problems are challenging - how do you design abstractions that minimise custom code, as every business is a little different; how do you deal with data scattered across multiple systems and make sense of a large number of moving parts.You get to work on a cutting edge stack consisting of Java, Spring, Hibernate, Redis, Elasticsearch, PostgreSQL, BigQuery, and AWS. Determine operational feasibility by evaluating analysis, problem definition, requirements, solution development and proposed solutions. Take accountability for the quality, total cost of ownership, maintainability and security of the component developed. Review code developed by other developers and provide feedback to ensure best practices (e.g., style guidelines, checking code in, accuracy, testability, and efficiency). Contribute to existing documentation or educational content and adapt content based on product/program updates and user feedback. Seek out opportunities for innovation that can be shared between multiple teams that have a willingness to experiment as well as the courage to boldly confront problems of a large complexity and scope. As an early team member, you’ll help shape our company culture, engineering practices, and the product.
Requirements
A great problem solver and is passionate about the craft of building software.Has a deep understanding of algorithms, data structures, and distributed systems.Has at least 3 years of experience in software engineering.Experience with the above-mentioned stack would be helpful but is not necessary.Is aspirational, self-driven, and proactive.Has excellent communication skills.
Sounds exciting? Apply at careers@drivetrain.ai. It may just be the next best decision you’ve ever made!
Interested?Backend Engineer at Drivetrain
Apply on company site (opens in a new tab)The job ad ends here
Interview questions for this job6 with answers, on System design, Java, Redis and 3 more
Interview questions for this job
For the skills the ad mentions: System design, Java, Redis, Elasticsearch, PostgreSQL and AWS.
Dilemma: when to use Fragments vs Activities:System design
Experts will tell you: "When I see the UI, I will know whether to use an
Activityor aFragment". In the beginning this will not have any sense, but in time, you will actually be able to tell if you needFragmentor not.There is a good practice I found very helpful for me. It occurred to me while I was trying to explain something to my daughter.
Namely, imagine a box which represents a screen. Can you load another screen in this box? If you use a new box, will you have to copy multiple items from the 1st box? If the answer is Yes, then you should use
Fragments, because the rootActivitycan hold all duplicated elements to save you time in creating them, and you can simply replace parts of the box.But don't forget that you always need a box container (
Activity) or your parts will be dispersed. So one box with parts inside.Take care not to misuse the box. Android UX experts advise (you can find them on YouTube) when we should explicitly load another
Activity, instead to use aFragment(like when we deal with the Navigation Drawer which has categories). Once you feel comfortable withFragments, you can watch all their videos. Even more they are mandatory material.Can you right now look at your UI and figure out if you need an
Activityor aFragment? Did you get a new perspective? I think you did.From Stack Overflow: asked by Emil Adz, answered by sandalone (CC BY-SA 3.0)
Explain: Comparable interface in javaJava
Java Comparable interface is used to compare objects and sort them according to the natural order.
Natural ordering is referred to as its
compareTo()function. TheStringobjects are sorted lexicographically, and thewrapper classobjects are sorted according to their built-incompareTo()function (like how Integers objects are sorted in ascending order)compareTo() The
compareTo()function compares the current object with the provided object.This function is already implemented for default wrapper classes and primitive data types; but, this function also​ needs to be implemented for user-defined classes. It returns:-
a
positive integer, if the current object is greater than the provided object. -
a
negative integer, if the current object is less than the provided object. -
zero, if the current object is equal to the provided object.
Example Sorting string
ArrayList<String> list = new ArrayList<>(); list.add("E"); list.add("A"); list.add("C"); list.add("B"); list.add("D"); Collections.sort(list); System.out.println(list); // [A, B, C, D, E]Sorting user defined objects
class Employee implements Comparable<Employee> { private String name; private int age; Employee(String name, int age) { this.name = name; this.age = age; } @Override public int compareTo(Employee employee) { if (this.age == employee.age) return 0; else if (this.age > employee.age) return 1; else return -1; } @Override public String toString() { return "[name=" + this.name + ", age=" + this.age +"]"; } }==========================================================
List<Employee> employeeList = new ArrayList<Employee>(); employeeList.add(new Employee("Emp1", 25)); employeeList.add(new Employee("Emp2", 10)); System.out.println(employeeList); // [[name=Emp1, age=25], [name=Emp2, age=10]] Collections.sort(employeeList); System.out.println(employeeList); // [[name=Emp2, age=10], [name=Emp1, age=25]]From Android Interview Questions (Apache 2.0)
-
What are the underlying data structures used for Redis?Redis
I'll try to answer your question, but I'll start with something that may look strange at first: if you are not interested in Redis internals you should not care about how data types are implemented internally. This is for a simple reason: for every Redis operation you'll find the time complexity in the documentation and, if you have the set of operations and the time complexity, the only other thing you need is some clue about memory usage (and because we do many optimizations that may vary depending on data, the best way to get these latter figures are doing a few trivial real world tests).
But since you asked, here is the underlying implementation of every Redis data type.
- Strings are implemented using a C dynamic string library so that we don't pay (asymptotically speaking) for allocations in append operations. This way we have O(N) appends, for instance, instead of having quadratic behavior.
- Lists are implemented with linked lists.
- Sets and Hashes are implemented with hash tables.
- Sorted sets are implemented with skip lists (a peculiar type of balanced trees).
But when lists, sets, and sorted sets are small in number of items and size of the largest values, a different, much more compact encoding is used. This encoding differs for different types, but has the feature that it is a compact blob of data that often forces an O(N) scan for every operation. Since we use this format only for small objects this is not an issue; scanning a small O(N) blob is cache oblivious so practically speaking it is very fast, and when there are too many elements the encoding is automatically switched to the native encoding (linked list, hash, and so forth).
But your question was not really just about internals, your point was What type to use to accomplish what?.
Strings
This is the base type of all the types. It's one of the four types but is also the base type of the complex types, because a List is a list of strings, a Set is a set of strings, and so forth.
A Redis string is a good idea in all the obvious scenarios where you want to store an HTML page, but also when you want to avoid converting your already encoded data. So for instance, if you have JSON or MessagePack you may just store objects as strings. In Redis 2.6 you can even manipulate this kind of object server side using Lua scripts.
Another interesting usage of strings is bitmaps, and in general random access arrays of bytes, since Redis exports commands to access random ranges of bytes, or even single bits. For instance check this good blog post: Fast Easy real time metrics using Redis.
Lists
Lists are good when you are likely to touch only the extremes of the list: near tail, or near head. Lists are not very good to paginate stuff, because random access is slow, O(N). So good uses of lists are plain queues and stacks, or processing items in a loop using RPOPLPUSH with same source and destination to "rotate" a ring of items.
Lists are also good when we want just to create a capped collection of N items where usually we access just the top or bottom items, or when N is small.
Sets
Sets are an unordered data collection, so they are good every time you have a collection of items and it is very important to check for existence or size of the collection in a very fast way. Another cool thing about sets is support for peeking or popping random elements (SRANDMEMBER and SPOP commands).
Sets are also good to represent relations, e.g., "What are friends of user X?" and so forth. But other good data structures for this kind of stuff are sorted sets as we'll see.
Sets support complex operations like intersections, unions, and so forth, so this is a good data structure for using Redis in a "computational" manner, when you have data and you want to perform transformations on that data to obtain some output.
Small sets are encoded in a very efficient way.
Hashes
Read the rest at the sourceFrom Stack Overflow: asked by Homer6, answered by antirez (CC BY-SA 3.0)
Elasticsearch: Difference between "Term", "Match Phrase", and "Query String"Elasticsearch
termquery matches a single term as it is : the value is not analyzed. So, it doesn't have to be lowercased depending on what you have indexed.If you provided
Bennettat index time and the value is not analyzed, the following query won't return anything :{ "query": { "term" : { "user" : "bennett" } } }match_phrasequery will analyze the input if analyzers are defined for the queried field and find documents matching the following criteria:- all the terms must appear in the field
- they must have the same order as the input value
- there must not be any intervening terms, i.e. be consecutive (potentially excluding stop-words but this can be complicated)
For example, if you index the following documents (using
standardanalyzer for the fieldfoo):{ "foo":"I just said hello world" } { "foo":"Hello world" } { "foo":"World Hello" } { "foo":"Hello dear world" }This
match_phrasequery will only return the first and second documents :{ "query": { "match_phrase": { "foo": "Hello World" } } }query_stringquery search, by default, on a _all field which contains the text of several text fields at once. On top of that, it's parsed and supports some operators (AND/OR...), wildcards and so on (see related syntax).As the
match_phrasequeries, the input is analyzed according to the analyzer set on the queried field.Unlike the
match_phrase, the terms obtained after analysis don't have to be in the same order, unless the user has used quotes around the input.For example, using the same documents as before, this query will return all the documents :
{ "query": { "query_string": { "query": "hello World" } } }But this query will return the same 2 documents as the
match_phrasequery :{ "query": { "query_string": { "query": "\"Hello World\"" } } }There is much more to say about the different options for those queries, please take a look at the related documentation :
Hope this is clear enough and it will help.
From Stack Overflow: asked by blee908, answered by ThomasC (CC BY-SA 4.0)
What is the format for the PostgreSQL connection string / URL?PostgreSQL
If you use Libpq binding for respective language, according to its documentation URI is formed as follows:
postgresql://[user[:password]@][netloc][:port][/dbname][?param1=value1&...]Here are examples from same document
postgresql:// postgresql://localhost postgresql://localhost:5432 postgresql://localhost/mydb postgresql://user@localhost postgresql://user:secret@localhost postgresql://other@localhost/otherdb?connect_timeout=10&application_name=myapp postgresql://localhost/mydb?user=other&password=secretFrom Stack Overflow: asked by JII, answered by Andrey (CC BY-SA 3.0)
Have you ever taken the initiative?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
- Senior Backend EngineerWeekday, Delhi NCR, on-siteToday
- Backend DeveloperAarvexa, Remote in India +1Today
- Senior Software Engineer - PA183ZoomInfo Technologies LLC, Bengaluru, on-site2 days ago
- Senior Analyst - Actuarial ( Python Developer) Gurgaon (3 to 4 years exp in Automation) - 5 days WFOKipi.bi, Delhi NCR, on-site2 days ago
More like this: Backend developer jobs in India (880) and Remote Backend developer jobs in India (305)


