How quickly understand new business

Recently more contact with new businesses, new businesses have little understanding about feelings, are summarized as follows

  1. The new business is more important than understanding the code is to understand the new business is more important than the understanding of new business is business awareness
  2. If business development, three years before graduation should be more focused on the technology and technical details, three to five years both the technology business, after five years of business-oriented

Here are some rule of thumb on how to quickly become familiar with new business

This link: shanyue.tech/post/busine...

tool

We must first of its profits.

Chrome multi-user mode

Easy plurality (more than two) to switch the user (administrator / user / various roles)

Business database permissions (production)

To have the best online database permissions, have the most real data, people tend to be unreasonable instinctive rejection of false data.

The database is the quickest way to understand the business

Logging system (or APM)

When a business need to know the details, you can use the log system

  1. For page interaction at the front, identify the key request
  2. Find requestId (various names sessionId / transactionId / logId / trackId, etc.) key request
  3. According to find the corresponding SQL / redis-command / requests requestId in the logging system (or APM) (primarily SQL)

As for how the whole link setup requestId, you can refer to my article: Use the full link requestId mark Log

If you do not requestIdhow to do?

We can only carefully look at the code

Code repository

Sun Tzu says: army attack plan, followed by cross-cutting, followed by the cutting forces, under siege.

When familiar with the new business, the person most familiar with the system point to point, followed by exchange with others, secondly Points page check SQL, most look at the code.

Code to the main server-side code, quickly browse the following files:

  1. router: for details of the location service specific logic
  2. Business logic: The concrete service logic point coming after the router, since the nested layers, might take dozens of times. Understanding the code specific organizational structure, when there is a need to go in-depth understanding of
  3. constant: Learn corresponding to the type of service of various resources, the state, state machines, and a database field (stored as database may enum, there may be int). Which represents the data is more important than how the data in the encoding used, of course, closely linked to both

About constant, better to use enum rather than digital maintenance, refer to my article: from the database to the front, instead of using the enum constant number

Learn Business

Understand the type of business

Who you are now responsible for the business user is?

  • There may be no discrete for each interrelated user terminal C
  • There may be services in major enterprises (organizations / institutions) B-end users.
  • There may be serving in the majority of my co-workers, such as operation and maintenance to the operation and maintenance platform used, to use CRM sales, to QA testing platform, as well as MIS, OA, and so such
  • There may be a user service, order services, data services, goods and other services

Different types of businesses have different focus, such as toB solemn, toC lively, internal can see on the line ...

How come you are now responsible for the business money

It is also a key issue

Understanding System

Understand the core system of the business involved, related to the type of business. I simply divided into two categories

  • Reception system: user-oriented, toC for the majority of users, toB for businesses and employees, toB for users
  • Back-office systems: for administrators, is often said backstage management system

Familiar with the system and practical operation of the main process

Understand the user's high-frequency operation, the main way to little point and do not know to ask. Some high-frequency operation, require background administrator and various roles with, then you can operate multiple users in Chrome

  • For example, know almost question, answer, comment, thumbs up to management posts and other banned background
  • OA system to initiate the process, as well as the approval of various roles
  • CRM business opportunities, orders, work order operation

Understand the system boundary

Due to popular micro services, all data likely to come from new business in basic services. In the familiar course of business, it is necessary to know which maintain their own data, which is maintained in the public service

  • User data maintenance or customer service business from the inside
  • Order data maintenance or service orders from inside business
  • Like

Understand the boundaries of the system

I.e., the subscriber service or orders the service over the system. Understand the common table, you can apply for permission to the database if necessary

Learn users and privileges (user / admin / role / Enterprise)

What role have permissions, and privileges of each component in the understanding of the business.

Can blur into the following table, we need to focus on

  1. permission: permission table
  2. role: the role of table
  3. user: user table
  4. organization: corporate / organizational chart

You also need to know the user login and registration process, there is no third-party login, and toB party's own user system access

Understanding Data

More important than the data itself is how to check SQL, if necessary can remember, for example,

  1. Large customer id and name
  2. Depth user id and name
  3. The main resource id / content
  4. The main resources / content of status / type (refer to enum / constant file)

The following are some of the common data and SQL operations, mainly for some constants and the main business

-- 了解用户量,必要时可以记住...
select count(*) from users wehre is_deleted = false

-- 了解某项业务的字段
\d business
select * from business order by id limit 1

-- 了解目前为止该业务有多少量数据
select count(*) from business

-- 了解某项业务的各个状态,以及分布
select status, count(*) from business group by status order by count desc

-- 了解某项业务的各个类型,以及分布
select type, count(*) from business group by type order by count desc
复制代码

I welcome the attention of the public No. Mountains month row , where I recorded the growth of technology, welcomed the exchange

Welcome to public attention Signal Hill-month row, where I recorded the growth of technology, welcomed the exchange

Guess you like

Origin juejin.im/post/5d4cdf696fb9a06b122f29b7