Disclosure of Invention
The embodiment of the application provides a social software hosting platform and a social software hosting method, which are used for at least solving the problems that different social software needs to be continuously opened and closed when a user needs to chat with users of a plurality of social software at the same time in the related technology, so that the chat efficiency is low and the user experience is not good.
In a first aspect, embodiments of the present application provide a social software hosting platform, which includes a social software docking service and a hosting platform service,
the social software docking service is connected with at least one piece of social software and controls the social software;
the hosting platform service is connected with the social software docking service, and the social software is controlled through the social software docking service, wherein the social software docking service sends the acquired message of the social software to the hosting platform service.
In some embodiments, the hosting platform further comprises a message queue, the social software docking service saves the obtained messages of the social software into the message queue, and the hosting platform service obtains the messages of the social software from the message queue.
In some of these embodiments, the hosting platform further comprises a registry service,
and the registry service registers the ip of the hosting platform service and the port with the service opened as the node of the registry service.
In some embodiments, the hosted platform further includes a hosted platform registration service that obtains an online status of the hosted platform service by listening for node changes of the registry service.
In some of these embodiments, the hosting platform further comprises a hosting platform-user side service,
the hosting platform registration service providing tokens to the hosting platform-user side service, wherein a token represents a hosted location;
the hosting platform-user side service acquires the ip and the port of the hosting platform service through the token and establishes long connection with the hosting platform service through a remote process call system.
In some of these embodiments, the hosted platform registration service detects a hosted quantity of the hosted platform service;
and under the condition that the hosting quantity of the hosting platform services reaches a preset value, adding a windows server for capacity expansion, wherein the windows server comprises a social software docking service and a hosting platform service.
In some of these embodiments, the social software interfacing service connecting with at least one social software comprises:
the social software docking service is connected with at least one piece of social software through an open interface or a robot process automation technology corresponding to the social software.
In a second aspect, an embodiment of the present application provides a social software hosting method, which is applied to the hosting platform described above, where the method includes:
the social software docking service integrates at least one piece of social software to a hosting platform, and the hosting platform service controls the at least one piece of social software through the social software docking service;
and the user manages the at least one piece of social software on a front-end page of the hosting platform through the hosting platform service.
In some embodiments, before the user manages the at least one social software through the hosted platform service on a front-end page of the hosted platform, the method further comprises:
after the hosting platform-user side service acquires a hosting request of a user, the hosting platform-user side service acquires an ip and a port where the hosting platform service is located through a token, and after a long connection is established with the hosting platform service through a remote process call system, the user logs in at least one piece of social software through the hosting platform-user side service.
In some embodiments, the user managing the at least one social software through the hosted platform service on a front-end page of the hosted platform comprises:
the social software docking service stores the obtained messages of the social software into a message queue, and the hosting platform service obtains the messages of the social software from the message queue.
Compared with the related technology, the social software hosting method provided by the embodiment of the application integrates at least one piece of social software into the hosting platform through the social software docking service, the hosting platform service controls the at least one piece of social software through the social software docking service, the user manages the at least one piece of social software through the hosting platform service on the front-end page of the hosting platform, namely after the user logs in the plurality of pieces of social software through the hosting platform, the hosting platform service simultaneously acquires messages of the plurality of pieces of social software through the social software docking service and displays the messages of the plurality of pieces of social software on the front-end page given by the hosting platform, the user can chat with friends or groups on the plurality of pieces of social software simultaneously on the front-end page, different pieces of social software do not need to be switched, different pieces of social software are continuously opened and closed, and the problem that the user needs to chat with the users of the plurality of pieces of social software simultaneously in the related technology is solved, different social software needs to be opened and closed continuously, so that the chat efficiency is low, and the user experience is not good.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be described and illustrated below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments provided in the present application without any inventive step are within the scope of protection of the present application. Moreover, it should be appreciated that in the development of any such actual implementation, as in any engineering or design project, numerous implementation-specific decisions must be made to achieve the developers' specific goals, such as compliance with system-related and business-related constraints, which may vary from one implementation to another.
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the specification. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of ordinary skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments without conflict.
Unless defined otherwise, technical or scientific terms referred to herein shall have the ordinary meaning as understood by those of ordinary skill in the art to which this application belongs. Reference to "a," "an," "the," and similar words throughout this application are not to be construed as limiting in number, and may refer to the singular or the plural. The present application is directed to the use of the terms "including," "comprising," "having," and any variations thereof, which are intended to cover non-exclusive inclusions; for example, a process, method, system, article, or apparatus that comprises a list of steps or modules (elements) is not limited to the listed steps or elements, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. Reference to "connected," "coupled," and the like in this application is not intended to be limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. Reference herein to "a plurality" means greater than or equal to two. "and/or" describes an association relationship of associated objects, meaning that three relationships may exist, for example, "A and/or B" may mean: a exists alone, A and B exist simultaneously, and B exists alone. Reference herein to the terms "first," "second," "third," and the like, are merely to distinguish similar objects and do not denote a particular ordering for the objects.
Fig. 1 is a block diagram of a social software hosting platform according to a first embodiment of the present disclosure, and as shown in fig. 1, the hosting platform includes a social software docking service and a hosting platform service, and the social software docking service is connected to at least one piece of social software through an open interface corresponding to the social software or a robot automation technology to obtain control capabilities of the social software, such as messaging, and the like.
The hosting platform service can be connected with the social software docking service by calling http, and controls the social software through the social software docking service, wherein the social software docking service sends the obtained message of the social software to the hosting platform service.
In this embodiment, after the social software docking service docks a plurality of social software, the user can log in to the corresponding social software, the hosting platform service obtains messages of the plurality of social software through the social software docking service at the same time, and displays the messages of the plurality of social software on a front-end page given by the hosting platform, the user can perform conversation chatting with friends or groups on the plurality of social software at the same time on the front-end page, and also can initiate adding friends on the plurality of social software through the hosting platform, create group chatting and other management operations, without switching different social software, and continuously open and close different social software.
Compared with the problems that in the related technology, when a user needs to chat with a plurality of users of social software at the same time, different social software needs to be switched, different social software needs to be continuously opened and closed, the chat efficiency is low, and the user experience is poor, in the embodiment, the plurality of social software are integrated into the hosting platform through an open interface of the social software or a robot process automation technology, the user can log in the plurality of social software from the hosting platform in a code scanning or password login mode, the front-end page given by the hosting platform is used for simultaneously chatting with friends and groups on a plurality of social software, so that the problems that when a user needs to simultaneously chat with users of a plurality of social software in the related art are solved, different social software needs to be opened and closed continuously, so that the problems of low chat efficiency and poor user experience are caused, and the chat efficiency and the user experience are improved.
In some embodiments, fig. 2 is a block diagram of a social software hosting platform according to a second embodiment of the present application, where as shown in fig. 2, the hosting platform further includes a message queue, the social software docking service stores the obtained messages of the social software in the message queue, and the hosting platform service obtains the messages of the social software from the message queue. In this embodiment, the hosting platform service and the social software docking service are decoupled through the message queue, so that message loss caused by downtime of the hosting platform service is avoided, that is, when the social software docking service acquires messages on a plurality of social software, the messages are not directly sent to the hosting platform service but are cached in the message queue, and the hosting platform service consumes the messages in the message queue, so that the situation that when the hosting platform service receives the messages in real time, the messages are blocked due to too much message amount is also prevented.
In some embodiments, fig. 3 is a block diagram of a social software hosting platform according to a third embodiment of the present disclosure, and as shown in fig. 3, the hosting platform further includes a registry service and a hosting platform registration service, where the registry service registers an ip of the hosting platform service and a port on which the service is opened as a node of the registry service, and the hosting platform registration service obtains an online status of the hosting platform service by monitoring a node change of the registry service. In this embodiment, after each windows server is started, the hosting platform service registers a node with the registry service, and the hosting platform registration service can monitor that a new windows server is on line.
Optionally, the hosting platform registration service detects the hosting number of the hosting platform services, and increases a windows server for capacity expansion when detecting that the hosting number of the hosting platform services reaches a preset value, where the windows server includes a social software docking service and a hosting platform service. In this embodiment, a registration center service is used for registration, and a windows server is added to expand capacity through horizontal expansion when a single hosting platform service cannot support a certain magnitude of hosting service.
In some embodiments, fig. 4 is a block diagram of a social software hosting platform according to a fourth embodiment of the present application, and as shown in fig. 4, the hosting platform further includes a hosting platform-user side service, and the hosting platform registration service provides tokens to the hosting platform-user side service, where one token represents one hosted location; the hosting platform-user side service acquires an ip and a port of the hosting platform service through a token, and establishes long connection with the hosting platform service through a remote process call system. In this embodiment, the remote procedure call system may be a grpc, the hosting platform-user side service obtains an ip and a port of the hosting platform service by using a token distributed to him, establishes long connection with the hosting platform service by using a grpc interface through a java-sdk package encapsulating the grpc capability, and controls social software to perform messaging and obtain related information of friends, groups, and the like through the grpc interface.
The above modules may be functional modules or program modules, and may be implemented by software or hardware. For a module implemented by hardware, the modules may be located in the same processor; or the modules can be respectively positioned in different processors in any combination.
The present embodiment also provides a social software hosting method, which is applied to the hosting platform described above, and fig. 5 is a flowchart of the social software hosting method according to the embodiment of the present application, as shown in fig. 5, the method includes the following steps:
step S501, the social software docking service integrates at least one piece of social software into a hosting platform, and the hosting platform service controls the at least one piece of social software through the social software docking service; in this embodiment, the social software docking service is connected to the at least one piece of social software through an open interface or a robotic process automation technology corresponding to the piece of social software, and integrates the at least one piece of social software into the hosting platform.
Step S502, a user manages at least one piece of social software on a front-end page of the hosting platform through the hosting platform service.
In the embodiment, after a user logs in a plurality of social software through a hosting platform, the hosting platform service simultaneously acquires messages of the plurality of social software through the social software docking service, and displays the messages of the plurality of social software on a front-end page given by the hosting platform, the user can simultaneously perform conversation chatting with friends or groups on the plurality of social software on the front-end page, and also can initiate friend adding and create management operations such as group chatting on the plurality of social software through the hosting platform, and different social software does not need to be switched, and different social software is continuously opened and closed.
In some embodiments, before a user manages at least one piece of social software through a hosting platform service on a front-end page of a hosting platform, after a hosting platform-user side service acquires a hosting request of the user, the hosting platform-user side service acquires an ip and a port where the hosting platform service is located through a token, and after a long connection is established with the hosting platform service through a remote process call system, the user logs in the at least one piece of social software through the hosting platform-user side service.
In some embodiments, the user managing the at least one social software through the hosted platform service on the front-end page of the hosted platform comprises:
the social software docking service stores the obtained messages of the social software into a message queue, and the hosting platform service obtains the messages of the social software from the message queue.
It should be noted that the steps illustrated in the above-described flow diagrams or in the flow diagrams of the figures may be performed in a computer system, such as a set of computer-executable instructions, and that, although a logical order is illustrated in the flow diagrams, in some cases, the steps illustrated or described may be performed in an order different than here.
The present embodiment also provides an electronic device comprising a memory having a computer program stored therein and a processor configured to execute the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
It should be noted that, for specific examples in this embodiment, reference may be made to the examples described in the foregoing embodiment and optional implementation manners, and details of this embodiment are not described herein again.
In addition, in combination with the social software hosting method in the foregoing embodiments, the embodiments of the present application may provide a storage medium to implement. The storage medium has a computer program stored thereon; the computer program, when executed by a processor, implements any of the social software hosting methods of the above embodiments.
In one embodiment, a computer device is provided, which may be a terminal. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a social software hosting method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
In an embodiment, fig. 6 is a schematic diagram of an internal structure of an electronic device according to an embodiment of the present application, and as shown in fig. 6, there is provided an electronic device, which may be a server, and an internal structure diagram of which may be as shown in fig. 6. The electronic device includes a processor, a network interface, an internal memory, and a non-volatile memory, which stores an operating system, a computer program, and a database, connected by an internal bus. The processor is used for providing calculation and control capabilities, the network interface is used for communicating with an external terminal through network connection, the internal memory is used for providing an environment for an operating system and running of a computer program, the computer program is executed by the processor to realize a social software hosting method, and the database is used for storing data.
Those skilled in the art will appreciate that the configuration shown in fig. 6 is a block diagram of only a portion of the configuration associated with the present application, and does not constitute a limitation on the electronic device to which the present application is applied, and a particular electronic device may include more or less components than those shown in the drawings, or may combine certain components, or have a different arrangement of components.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
It should be understood by those skilled in the art that various features of the above-described embodiments can be combined in any combination, and for the sake of brevity, all possible combinations of features in the above-described embodiments are not described in detail, but rather, all combinations of features which are not inconsistent with each other should be construed as being within the scope of the present disclosure.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is specific and detailed, but not to be understood as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.